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
Effort
within aChallenge
- ID_LEN 🔒
- Length of the HsBlindId
- NONCE_
OFFSET 🔒 - Location of the
Nonce
within aChallenge
- P_
STRING 🔒 - Algorithm personalization string (P)
- P_
STRING_ 🔒LEN - Length of the personalization string, in bytes
- SEED_
OFFSET 🔒 - Location of the
Seed
within aChallenge