Commit to a choice before exposing the choice and salt.
LET’S PICTURE IT
Seal a decision in an envelope, then open it after everyone has committed.
SEE IT FOR YOURSELF
From exact bytes to a Keccak-256 fingerprintStep 1 / 4
The text hello is a particular sequence of characters. Case or text normalization can change the encoded bytes.
The text hello is a particular sequence of characters. Case or text normalization can change the encoded bytes.UTF-8 hello is the five-byte sequence 68 65 6c 6c 6f. The 0x prefix is display notation.The algorithm maps the input to a fixed thirty-two-byte output. This is a fingerprint operation, not reversible encryption.For hello, the digest begins 1c8aff95 and ends 36deac8. The local hash tool displays the complete result and lets you edit the input.
Animated local teaching model. No wallet, RPC or live blockchain data. Some labels and hashes are abbreviated for readability.
Commit to exact content
A commitment hashes an unambiguous encoding of the choice, unpredictable salt and relevant context. The verifier later recomputes that same digest.
Keep the salt unpredictable
If choices come from a small set and the salt is absent or guessable, observers can try every candidate before the reveal stage.
Define timing and non-reveal behavior
A protocol needs rules for commitment deadlines, reveal windows and participants who never reveal. Hashing alone does not solve withholding or fairness problems.
Bind the intended participant
Include relevant identity or action context so another party cannot copy a commitment or reveal into an unintended role. The exact fields depend on the protocol.