Переглянути джерело

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,
           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();
       memLimit = (memLimit / 2).round();
       opsLimit = opsLimit * 2;
       opsLimit = opsLimit * 2;
     }
     }