Skip to content
QORECHAIN
Register

Post-Quantum dApp

Lifeboat

Get off the old keys before Q-Day: a post-quantum account and migration layer on QoreChain

Share on X

About

Lifeboat is a post-quantum account and Q-Day migration layer for EVM on QoreChain. Funds in a Lifeboat account move only with an ML-DSA-87 signature that the chain's pqcVerify precompile checks, so a forged classical (ECDSA) signature moves nothing. A scanner reads any address and returns a Q-Day readiness score with a list of what is exposed, and one hybrid-signed migrate transaction moves those assets into a protected account. Spending limits, an allowlist, a timelock, key rotation and guardian recovery sit on the same primitive, with escrow and DAO treasury modules built on top. A transaction inspector re-runs pqcVerify live, so anyone can verify the protection on chain. There is no backend: the contracts run on the QoreChain testnet (diana) and the frontend is a static site.

How it's made

Contracts (Solidity, Foundry). A PQAuth library wraps the two precompiles. For every action it calls pqcKeyStatus(owner) and requires a registered key, proven possession, algorithmId 1, and keccak256(pubkey) equal to the key hash pinned at account creation. It then calls pqcVerify(pubkey, signature, digest) and requires a 32-byte true. Anything else fails closed. The digest binds the chain ID, the account address, a policy version, the calls, a nonce and a deadline, so a signature works once and only on one account. Anyone can relay a signed action, so no server is needed. LifeboatFactory creates accounts with CREATE2. The account has per-token 24-hour limits, an allowlist, a timelock queue, two-key rotation and k-of-n guardian recovery. Policy changes are PQ-signed self-calls that bump the policy version. Escrow and DAO treasury are separate modules that cannot move funds without the account's own check. QoreChain features used: hybrid secp256k1 + ML-DSA-87 signing, key registration and binding, scoped EVM windows (blocks, maxTxs, maxValue, nativeOnly, allowedTargets, confirmed working on diana), and the pqcVerify and pqcKeyStatus precompiles. Frontend: Vite, React and TypeScript with @qorechain/sdk, @qorechain/evm, @qorechain/pqc, @qorechain/qoresign and the QoreX integration, deployed as a static site on Vercel. The ML-DSA key is generated and used only in the browser. The home-page numbers are read live from chain events, and the Inspector recomputes the digest and re-runs pqcVerify. The scanner turned a demo address from 45 to 85 in one hybrid-signed transaction. Testing: 98 Foundry tests including fuzzing and invariants (funds leave only through a valid signed action, a nonce is never accepted twice, spend never exceeds the limit). Unit tests use a MockPQC helper because the precompiles exist only on diana; scripts under script/ run the real flow on the chain. Real runs include a PQ-signed setLimit (278,331 gas) and a PQ-signed send (260,748 gas). Both QCAI audit stages scored 85/100, risk MEDIUM, with 6 findings. We triaged each against the code, wrote a test for each, and found no real bug. Those verdicts are our own reading, not independent, and docs/AUDIT.md says so. What was hard: pqcVerify takes a raw public key, not an address, so we pinned the key hash and checked it against pqcKeyStatus. Each verify costs about 312k gas, which limits batching to roughly 10 signatures per transaction and forced us to budget faucet funds. The precompiles exist only on diana, so unit tests needed a mock and the real-chain proof came from scripts. The QCAI audit has no command line, so we ran it through the dashboard and saved the reports in the repo. Limits: testnet only, and no third-party audit.

Timeline

LifeboatPost-Quantum dApp

Pushed 49 commits to main

  • 5fc70f9 chore: ignore video/ (demo footage, audio and renders) · Nuelcrypt
  • 26ecb34 docs: README top links include the audit and the CBOM · Nuelcrypt
  • d03a236 docs: README credits every kit, library and font; names the create-qorechain-dapp command · Nuelcrypt
  • 5705c81 feat: real-chain proofs for timelock cancel, a rejected replay and a rejected wrong signature · Nuelcrypt
  • 72f9352 docs: QCAI stage 2 result, comparison with stage 1, and tests for the two new findings · Nuelcrypt

and 44 more commits

LifeboatPost-Quantum dApp

New project.

Comments and questions

  • No comments yet.