Skip to main content

Verify Commitment

Checks a revealed server seed against the hash that was published before the round.

Half of a fairness check: it proves the seed you revealed is the seed you committed to. SHA256(Server Seed) === Committed Hash.

Pair it with Verify Fairness, which proves the outcome follows from that seed.

Inputs

Actions

SignalDescription
DoRuns the check.

General

DataDescription
Server Seed (string)The revealed seed.
Committed Hash (string)The hash published before the round.

Outputs

DataDescription
Result (boolean)True when the seed hashes to the published commitment.
SignalDescription
DoneSent when the node has finished, on success and on failure alike.