What Is a Commitment Scheme
A commitment scheme is a cryptographic function that allows both the player and Degen.com to commit to secret values before a game starts — while keeping them hidden until the game ends.
Once these values are revealed, anyone (including the player or third parties) can verify that the original commitments match, proving that no one altered the result.
This system makes every Degen.com game transparent, verifiable, and tamper-proof.
A commitment scheme operates in two distinct phases:
Commit Phase
Reveal Phase
Commit Phase
The commit phase locks in the key values that determine each game’s outcome.
Once committed, these values cannot be changed until they are revealed.
In simplified form:
Output = Commit(Client Seed, Server Seed, Nonce)
Two cryptographic algorithms are used in this process:
SHA-256 — used to hash the Server Seed, allowing players to verify it was not changed before the game
HMAC-SHA512 — used to generate the actual game outcome from the combined Client Seed, Server Seed and Nonce
Active Client Seed
Unhashed and generated by the player.
You can change this value at any time in the Provably Fair modal.
The client seed ensures that players actively participate in generating game randomness.
Active Server Seed (Hashed)
Secret value created by Degen’s server.
This seed is hashed using the SHA-256 algorithm, and only the hashed version is shown to the player.
The unhashed value remains hidden until the next seed rotation (the reveal phase).
Nonce
A counter that starts at 0 and increases with every bet placed using the same seed pair.
Guarantees that each bet outcome is unique, even if the client and server seeds remain the same.
The combination of these three elements — Client Seed, Server Seed, and Nonce — ensures that every game output is random and unique.
Reveal Phase
During the reveal phase, the goal is to unhash and reveal the previous Server Seed so players can verify their results.
To begin the reveal phase, you must manually rotate your seed pair in the Provably Fair modal:
Enter a new Client Seed and click Change.
Once rotated, Degen.com reveals the previous Server Seed in plain text.
Now, the full set of values — Client Seed, Server Seed, and Nonce — are visible to both the player and operator.
You can use these values to verify the result of any round through:
The Provably Fair modal inside Degen games, or
The Provably Fair page available in the website footer.
By inputting these three values, the verification tool reproduces the exact same result as your original bet, confirming that it was generated fairly and without alteration.
Server Seed
The Server Seed is a 64-character hexadecimal string randomly generated by Degen’s system.
It is hashed using SHA-256, which provides two critical protections:
Prevents cheating by players:
It is computationally impossible to reverse a SHA-256 hash to find the original seed (pre-image resistance).Prevents manipulation by the operator:
It is also impossible to produce two different inputs that generate the same hash (collision resistance).
The unhashed server seed is revealed only after a new seed pair is committed — allowing full verification of past game results.
Client Seed
The Client Seed belongs to the player and adds player-side randomness to every game.
It is initially generated automatically by your browser, but you can change it anytime in the Provably Fair modal to a custom value.
This gives you direct influence over the randomization process and ensures that no result can be predetermined by Degen alone.
Nonce
The Nonce — short for “number used once” — increases by one after every bet made under the same seed pair.
This guarantees that each bet produces a unique, reproducible output even if the same seeds are used repeatedly.
Why It Matters
By combining Client Seed, Server Seed, and Nonce under a transparent commitment scheme, Degen.com ensures that every result is provably fair, cryptographically secure, and verifiable by the player.
It’s the foundation of Degen’s trust model — no hidden outcomes, no manipulation, and full transparency in every bet.
Need Help?
If you have questions about commitment schemes or verifying results, our support team is available 24/7.
Contact support@degen.com or reach us through live chat in your Profile section or left sidebar.