Module challenge

Source
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 a Challenge
ID_LEN 🔒
Length of the HsBlindId
NONCE_OFFSET 🔒
Location of the Nonce within a Challenge
P_STRING 🔒
Algorithm personalization string (P)
P_STRING_LEN 🔒
Length of the personalization string, in bytes
SEED_OFFSET 🔒
Location of the Seed within a Challenge