Commitment Schemes & Nullifiers
Two small cryptographic primitives that power on-chain privacy — how commitments hide a value while binding you to it, and how nullifiers let you spend a secret exactly once without revealing which one.
Commit Now, Reveal Later
A commitment scheme is like sealing a value in an envelope: you produce a commitment (the sealed envelope) that hides the value but binds you to it — you can't change what's inside afterwards, and later you can open it to prove what it was. Good commitments have two properties: hiding (the commitment reveals nothing about the value) and binding (you can't later claim it was a different value). A simple version is hashing a secret with some random 'salt'; the hash is the commitment, and later revealing the secret and salt proves what you committed to. Commitments are everywhere in cryptography and blockchains — in fair coin flips, sealed-bid auctions, voting, and crucially in privacy systems, where you want to prove you did something without revealing the details yet.
Spending a Secret Exactly Once: Nullifiers
Privacy systems face a puzzle: if you hide who owns what (using commitments), how do you stop someone spending the same hidden asset twice, without revealing which asset it is? The answer is a nullifier — a unique value derived from a secret that you publish when you spend, which marks that secret as 'used' without revealing which commitment it corresponds to. Each secret produces exactly one nullifier, so the system can keep a public list of spent nullifiers and reject any repeat, preventing double-spends — yet because the nullifier can't be linked back to the original commitment, privacy is preserved. Commitments hide your assets; nullifiers let you spend them once each without breaking that anonymity. Together they're the core machinery of on-chain privacy.
- A commitment hides a value (hiding) while binding you to it (binding), to reveal later
- A simple commitment: hash your secret with random salt
- A nullifier is a unique 'used' marker derived from a secret, published when spending
- Nullifiers prevent double-spends without revealing which asset was spent
Key Takeaways
- Commitments seal a value: hidden now, provable later, unchangeable
- Nullifiers let you spend a hidden secret exactly once, anonymously
- Together they are the core primitives of on-chain privacy systems
Related Content
More Topics
Browse all 179 topicsSmart Contract Vulnerability Classes
The recurring bug patterns behind most smart-contract exploits — reentrancy, access control, oracle manipulation, and more — explained so you can recognise the shapes of risk rather than just the headlines.
Mechanism Design & Cryptoeconomics
The discipline of designing rules and incentives so that self-interested participants produce the outcome you want — the invisible foundation beneath consensus, tokens, governance, and every 'trustless' system.
Alternative Consensus Mechanisms
Beyond proof of work and proof of stake — the landscape of other ways blockchains agree, from proof of history and proof of space to DAG-based and BFT consensus, and what each trades off.
KZG & Polynomial Commitments
The cryptographic workhorse behind modern ZK proofs, danksharding blobs, and verkle trees — how committing to a polynomial lets you prove facts about huge amounts of data with tiny, constant-size proofs.
Slashing & Validator Economics
What actually keeps proof-of-stake validators honest — the rewards for good behaviour, the penalties and slashing for bad, correlation incentives, and the economics of running or delegating a validator.
Decentralized Storage Networks
How networks like Filecoin, Arweave, and IPFS store data without a central server — the difference between availability and permanence, how storage is proven, and why 'on-chain' rarely means the data itself.
Yield Aggregators & Vaults
How automated 'vaults' chase DeFi yield on your behalf — auto-compounding, strategy rotation, and abstracted complexity — and the layered smart-contract, strategy, and sustainability risks that come with them.
Decentralized Social Networks
Social apps built on portable, user-owned identity and social graphs — how Farcaster, Lens, and similar protocols try to break platform lock-in, and the real hurdles between the vision and mainstream reality.
References & further reading
- primaryEthereum.org — Zero-Knowledge Proofs
How commitments and ZK proofs enable on-chain privacy.
archived copy ↗ - secondary