WorkChallenge

These parameters define the proof-of-work challenge. For each sub-puzzle i, find the smallest nonce n such that the Argon2id hash of "<challenge>:<i>:<n>" (version 0x13, parallelism 1, using the provided salt) starts with four bytes that are less than hash_prefix_below when read as a big-endian unsigned 32-bit integer.

Properties

PropertyTypeDescription
challenge string Required The signed challenge. Hash it, and send it back unchanged in your solution.
salt string Required The base64url-encoded Argon2id salt.
hash_prefix_below integer (int64) Required Each sub-puzzle is solved by a nonce whose hash starts with four bytes that are less than this number when read as a big-endian unsigned 32-bit integer. The average number of hashes needed to solve a sub-puzzle is 4294967296 divided by this number.
sub_puzzles integer (int32) Required How many sub-puzzles to solve, numbered from 0. Your solution includes one nonce for each, in order.
memory_kib integer (int32) Required The Argon2id memory cost of each hash, in KiB.
iterations integer (int32) Required The number of Argon2id passes (time cost) for each hash.
hash_bytes integer (int32) Required The length of each Argon2id hash, in bytes.
header string Required The request header used to send the solution, formatted as the challenge, a colon, and the comma-separated nonces for each sub-puzzle.
expires_at integer (int64) Required When the challenge expires, as a Unix timestamp in seconds.

Used inside

All documentation