Expand description
Implement the v1 schemeโs challenge string format
This is a packed byte-string which encodes our puzzleโs parameters as inputs for Equi-X. We need to construct challenge strings both to solve and to verify puzzles.
Structsยง
- Challenge ๐
- A fully assembled challenge string, with some access to inner fields
Constantsยง
- CHALLENGE_
LEN ๐ - Total length of our Equi-X challenge string
- EFFORT_
LEN ๐ - Packed length of an
Effort, in bytes - EFFORT_
OFFSET ๐ - Location of the
Effortwithin aChallenge - ID_LEN ๐
- Length of the HsBlindId
- NONCE_
OFFSET ๐ - Location of the
Noncewithin aChallenge - P_
STRING ๐ - Algorithm personalization string (P)
- P_
STRING_ ๐LEN - Length of the personalization string, in bytes
- SEED_
OFFSET ๐ - Location of the
Seedwithin aChallenge