Skip to content

Commit 2f35f23

Browse files
committed
Fix ops calculation for 30-second derivation time
- Update comment to reflect that OPS=10 takes 30s (not 60s) - Adjust calculation: N days = N * 28800 ops (was N * 14400) - This maintains the intended time-lock duration with corrected baseline
1 parent 710035f commit 2f35f23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/complex-scheme.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ KEYFILE_SIZE="32"
1414
# There is no good reason to use a low value here
1515
FIRST_PREIMAGE_NBITS=63
1616
# Calculate ops based on input days parameter
17-
# if OPS=10 takes 60s, then for N days:
18-
# N * 24 * 3600 / 60 * 10 = N * 14400
19-
MONTHS_LONG_OPS=$((DAYS * 14400))
17+
# if OPS=10 takes 30s, then for N days:
18+
# N * 24 * 3600 / 30 * 10 = N * 28800
19+
MONTHS_LONG_OPS=$((DAYS * 28800))
2020
# This is 8GiB
2121
LARGE_MEM_LIMIT_KBYTES=8388608
2222

0 commit comments

Comments
 (0)