
Post-Quantum dApp
Cutaway
A reserve parachute for money on QoreChain: if lattices fall, your vault lands on hashes.
About
Every QoreChain account answers to one family of mathematics: module lattices. ML-DSA-87 is the only signature algorithm in the chain's registry, and its emergency switch, MsgDisableAlgorithm, has nothing to switch to without a software release. On 30 November 2026 the Cryptography Incident Review Group said new results "lower our long-term confidence in structured lattices" and advised hybrids and crypto-agile systems. Cutaway is a vault whose money keeps a reserve. Your everyday MAIN key is your QoreX account's ML-DSA-87 key, checked on chain with pqcVerify and pqcKeyStatus. Your RESERVE is two SLH-DSA keys (FIPS 205, hash-based) from a 24-word phrase on paper: SHA2-128s is verified inside the EVM, SHA2-256s by a CosmWasm contract on the Native lane through the atomic cross-VM bridge. Up to a daily limit one live key moves money; above it, and for every policy change, every live group must sign. Lose one group, and the other can start a slower recovery that a key of the group it did not come from can cancel. The Break Registry holds a public canary key for each algorithm that nobody holds (expanded from a published phrase), each with a bounty. A valid forgery for a canary proves that algorithm broken: the canary dies, and in that same block every Cutaway vault stops counting keys of that algorithm. The lattice key is cut away and the reserve carries the money. If every group is cut away, nothing moves. Run the drill on testnet: three vaults hold the same money and an attacker can forge the owner's lattice signatures. The workshop pqcVerify vault is drained, a canary-aware vault without a reserve freezes with the owner locked out, and the Cutaway vault loses at most the daily limit and is recovered with the reserve phrase. Every step is a real transaction.
How it's made
Contracts (Solidity 0.8.28, Foundry): CutawayVault (minimal clones from CutawayFactory; every key proves possession at creation), BreakRegistry (no owner; canaries fixed at deployment; claims name the claimant; each break also writes a receipt to the Native lane through the cross-VM bridge), signature families behind one ISignatureFamily interface (ML-DSA-87 account key pinned by its public-key hash, bound through pqcKeyStatus and checked with pqcVerify in the QoreX message format; raw ML-DSA-87 for canaries; SLH-DSA-SHA2-128s in Solidity through the SHA-256 precompile; SLH-DSA-SHA2-256s through the Native verifier; ECDSA for the curve canary), plus CutawayRouter and DrillKit so the relayer's EVM window is scoped to three addresses. 145 Foundry tests and 4 invariants (4,096 calls each): an attacker holding only the lattice key never takes more than the daily limit in a day, and nothing once a break is proven. The Solidity SLH-DSA verifier passes all 28 NIST ACVP sigVer cases used plus noble cross-vectors; on diana a verification costs about 846k gas (ML-DSA-87 via pqcVerify: about 312k). Native lane (Rust, CosmWasm 2.x): cutaway-slh-verifier checks all 12 FIPS 205 parameter sets (RustCrypto slh-dsa), passes 93 ACVP cases, and builds reproducibly with cosmwasm/optimizer 0.16.1. It goes on chain through a governance proposal that stores it, instantiates it with no admin and pins it on the bridge allowlist. Off chain: @qorechain/sdk for hybrid native transactions, ML-DSA-87 key registration with proof of possession and scoped EVM windows; QoreX signArbitrary (QoreSign message format) for the main key; @noble/post-quantum for reserve signatures in a Web Worker. The relayer only pays gas. Web app scaffolded with create-qorechain-dapp (viem-wagmi template). Before the final deployment we audited our own contracts and relayer: 11 findings (2 High, 1 Medium), each fixed and pinned by a regression test, written up in docs/AUDIT.md. What was hard: SDK 0.14 refuses today's crossvm params, so the allowlist update is encoded field by field and checked byte for byte against proposal 59; our first proposal had to be withdrawn because it would have overwritten another builder's pending allowlist entry; QoreChain charges at least half of the gas limit, so the relayer sets limits from estimates.
Timeline
Newly verified on chain: QoreScan
Newly verified on chain: QoreScan
Pushed 33 commits to main
- 37b236b Redeploy on diana with the recovery fix; QCAI stage 1 report and response · RaYYeR220
- 85364c4 Vault: a recovery is void once every key that signed it is cut away; bounded-loop and transfer notes · RaYYeR220
- 84401bf send script: choose the sending account · RaYYeR220
- 99878ba Security review write-up: findings, fixes and regression tests · RaYYeR220
- 12ce236 Redeploy on diana with the hardened vault: pinned main key in the app and relayer, per-action ids, recovery delay · RaYYeR220
and 28 more commits
New project.
Comments and questions
- No comments yet.