浏览代码

Add comment about key generation

vishnukvmd 2 年之前
父节点
当前提交
589281e729
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      lib/utils/crypto_util.dart

+ 3 - 0
lib/utils/crypto_util.dart

@@ -333,6 +333,9 @@ class CryptoUtil {
           s,
         );
       }
+      // Ensure that the product of these two variables
+      // (the area under the graph that determines the amount of work required)
+      // stays the same
       memLimit = (memLimit / 2).round();
       opsLimit = opsLimit * 2;
     }