
HashX
Private voting and Reveal for Optimistic Oracles
Demo
About
The problem it solves ### ⏳ HashX **A Permissionless Optimistic Oracle on Hedera Built Using Timelocked Puzzles** HashX is a privacy-preserving oracle protocol for creating and resolving prediction markets. It ensures *encrypted, verifiable, and delay-revealed voting* using BabyJubJub-based ECDH and AES-256-CTR, with rewards distributed via Merkle proofs.
How it's made
Challenges we ran into ### Challenges - Linking between Prediction Market and Optimistic Oracle, such that flow becomes atomic. - Automated Voting Resolution Logic - Time Lock Puzzle Formation ### Overview - Verifier Secret Key generated during oracle creation. - Public parameters (RSA modulus N, base a, iterations t) published on-chain. - Encrypted voting using EIP-712 typed signatures → ephemeral keys → AES-encrypted ballot. - Privacy: Voters cannot prove their votes until resolution. - Rewards: Distributed proportionally to stake via Merkle proofs. - Solver Reward: Default 5% of oracle value. - Integration: Full Hedera EVM Testnet with RainbowKit. - Staking: Lock HBAR → wrap to WHBAR for voting power via HBARLockingContract.