
Protocol Builders
Hushbook
A post-quantum private order book sidechain on QoreChain, with a watchtower that replays every batch.
About
Hushbook is a post-quantum private order book sidechain on QoreChain, run as a YES/NO outcome market where each share pays 1 QOR if its side wins. On a public chain everyone sees your order before it trades, which is what front-running feeds on. Hushbook hides the order flow without asking anyone to trust the operator. Traders seal every order with ML-KEM-1024 to the operator and the watchtowers, using keys from QoreChain's on-chain KEM registry, and post it to a based inbox on QoreChain, so the chain, not the operator, fixes the order of trades. A deterministic Rust engine matches the orders, and the operator publishes each batch with its state and fills roots, signed with ML-DSA-87. Watchtowers decrypt the same orders, replay the same engine and compare roots. If the operator mis-matches or skims, a watchtower posts a signed fraud alert on chain naming the exact fill. Withdrawals are paid out on QoreChain with a Merkle proof, and every batch comes with a settlement receipt that is verified against the chain and fails if a single hex digit changes.
How it's made
- Rust matching engine (hushbook-engine): YES/NO order book, price-time priority, Merkle state and fills roots. The operator and every watchtower run the same binary, so honest runs agree byte for byte. - TypeScript app on @qorechain/rdk: keys, posting, matcher, watchtower, withdrawals and receipts. - ML-KEM-1024 sealed orders and batch bodies (RDK envelopes), with member keys published in QoreChain's on-chain KEM registry. - ML-DSA-87 signed batch headers, fraud alerts and market genesis, verified against the key the chain registered for the poster. - Based qledger-v1 inbox on QoreChain: the chain fixes the order of every post, and each entry is checked against the chain's inbox accumulator. - Watchtower: replays every Hushbook batch, and also re-executes the host rollup's qledger-v1 batches and checks their state and withdrawals roots. - Withdrawals: qledger-v1 withdrawals signed with the venue's ML-DSA-44 key, paid on QoreChain with a Merkle proof once the host batch is final. - Settlement receipts: build and verify against the chain (host anchor, inbox inclusion, poster, operator signature, no fraud alert). - Hybrid-signed transactions (secp256k1 + ML-DSA-87) on the qorechain-diana testnet. - Reads fail over between QoreChain's two independent testnet nodes. - Threat model in THREAT_MODEL.md.
Timeline
Pushed 13 commits to main
- fbacc9b ci: typecheck and build the web viewer · Daveboycyber
- 8813a95 docs: architecture note and skim-and-alert reproduction · Daveboycyber
- a1b9ae7 test(app): offline watchtower header and root decision checks · Daveboycyber
- e9b7b56 Merge pull request #1 from Daveboycyber/test/engine-edges · dicethedev
- fd9767d test(engine): edge cases for partial fills, bounds, self-cross, resolve · Daveboycyber
and 8 more commits
First on-chain deployment detected on testnet.
Pushed 27 commits to main
- 22a9533 docs: add AI usage notes · dicethedev
- ffe9a63 docs: add Hushbook logo and 16:9 cover image · dicethedev
- d8882b1 docs: add architecture and order lifecycle diagrams to README · dicethedev
- b16708d docs: log finalized host batch 132, paid withdrawals and receipts for batches 2 and 3 · dicethedev
- e8588f7 docs: add host submitter bond and broadcast threats to the threat model · dicethedev
and 22 more commits
New project.
Comments and questions
- No comments yet.