←
zkRune
zkRuneCryptography • Easy
Hash Preimage Proof
Prove you know secret X where hash(X) = Y without revealing X
Difficulty: Easy
Time: ~30 seconds
Privacy: 100% Shielded
Generate Proof
How It Works
- You have a secret value (preimage)
- Generate hash(preimage + salt) and share publicly
- Later, prove you know the preimage without revealing it
- Core ZK primitive used in commitments, voting, and more
The secret value you want to commit to
Random value to make hash unpredictable
How It Works
- 1Choose a secret value (preimage)
- 2Add salt for security
- 3Generate hash commitment
- 4Share hash publicly
- 5Prove you know preimage without revealing it
Use Cases
✓
Voting commitments✓
Secret reveals✓
Hash-locked contracts✓
Prediction marketsTechnical Details
Proof System:zk-SNARKs
Circuit:Age Comparison
Constraints:~1,000
Blockchain:Zcash Testnet
View Circuit Code
See the actual ZK circuit implementation