PCM_CCTF_challenge/flag_encoder
SI 512ecf13d6 use "1 + (h mod (n - 1))" instead of "mod n" to cast a hash to a private key
a private key must be in range [1, n - 1]

this change neatly eliminates the scenario where the private key value ends up being 0, though it was extremely unlikely to occur in the first place (and could not even be easily forced)

this changes the encoding -- players need to use the same encoding for submissions as the one used to post challenges
2024-04-05 01:40:07 +02:00
..
bn.js implement a proper flag encoder tool as an HTML+JS app 2023-08-20 01:20:23 +00:00
index.html use "1 + (h mod (n - 1))" instead of "mod n" to cast a hash to a private key 2024-04-05 01:40:07 +02:00
nano-ethereum-signer-mod.js implement a proper flag encoder tool as an HTML+JS app 2023-08-20 01:20:23 +00:00