Skip to main content

Module challenge

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