
Encrypted Apps
Lockstep
Company secrets that open only when k of n agree — sealed so even Q-Day can't read them.
About
Company secrets usually live in one person's head or one password manager — one leak and they're gone, and quantum computers will read today's encryption tomorrow. Lockstep seals each secret under AES-256-GCM, splits the key with Shamir's scheme, and seals every share with ML-KEM-1024 (QoreSeal) to a different member — only hashes and envelopes ever touch the chain, so even Q-Day can't read a secret from the ledger. Release needs k of n members to approve with ML-DSA-87 signatures verified on chain (pqcVerify), then a block delay during which any single member can veto. The native MsgRegisterPQCMultisig message is not used — it was evaluated and dropped (see README / probes/PROBES.md F-1); the multisig agreement here is signatures + veto, not a native multisig account. Live on Diana: LockstepVault (0x51aa71dea80f6cc75209a4926f8ec8dd029a2ee4, block 10952769, 9,179 bytes, byte-identical to source) holds real test secrets with 16 requests — 5 pending, 4 in delay, 3 released, 4 vetoed — every step a real transaction, and the Pattern C flow was proven live end to end on a throwaway vault. QCAI audits: 85/100 in Stage 1 and 82/100 in Stage 2, 0 real findings in either. Tests: Foundry 37/37, CLI 51/51, web 82/82.
How it's made
The vault is the law. LockstepVault (0x51aa71dea80f6cc75209a4926f8ec8dd029a2ee4, block 10952769, 9,179 bytes, byte-identical to source) enforces createSecret, request, approve, veto, release and resealCommit on chain. Every approval is a member's ML-DSA-87 signature verified with pqcVerify (0x0A01) against a proof-of-possession-proven key, recorded as per-member bitmap bits (max 16 members). After k approvals comes a 100-block delay, during which any single member can veto — the emergency brake is unilateral by design, and a veto kills only that attempt, never the secret. release() itself is open by design: it moves no funds and reveals nothing; it only records that the delay passed and k re-sealed shares are committed. The cryptography is layered, not trusted to one primitive. Each secret is sealed under AES-256-GCM; the data-encryption key is split with Shamir's scheme; every share is sealed with ML-KEM-1024 (QoreSeal) to a different member's key. Only hashes and envelopes ever touch the chain — the ciphertext and the shares never do. Members re-seal their shares to the requester's KEM key after approval, so the secret is reconstructed only by the requester, off chain. A TypeScript CLI (Shamir via secrets.js + @qorechain/qoreseal + @qorechain/qoresign) does the sealing and re-sealing locally — all key material stays on the operator's machine. The Pattern C flow was proven live end to end on a throwaway vault, and 29 live tests passed against the deployed vault. The web app (React + Vite) shows the live vault state and the ritual — Seal, Request, Approve, Delay, Release — with real Broadcast, Veto and Re-seal buttons, the audit trail read from live eth_getLogs, and the 16 live requests (5 pending, 4 in delay, 3 released, 4 vetoed) with their real states, including red Expired badges on the 3 that lapsed. Tests: Foundry 37/37, CLI 51/51, web 82/82. QCAI audits: 85/100 in Stage 1 and 82/100 in Stage 2, 0 real findings — the verdicts are in docs/AUDIT.md. Release needs k of n members to approve with ML-DSA-87 signatures verified on chain (pqcVerify), then a block delay during which any single member can veto. The native MsgRegisterPQCMultisig message is not used — it was evaluated and dropped (see README / probes/PROBES.md F-1); the multisig agreement here is signatures + veto, not a native multisig account.
Timeline
Newly verified on chain: QoreSeal and the encryption key registry
Pushed 54 commits to main
- a1ab9c1 README sync: harsh-QA 14/14 fixed, QCAI Stage 2 82/100 recorded (QCAIA-1795980237706-F89F8DFB), verify-readme 72/72 · goat-dev8
- b702287 Regenerate snapshot.json from the live chain · goat-dev8
- 0df0469 Audit trail reads live eth_getLogs + landing vault-events strip · goat-dev8
- c6a6c9e QCAI Stage 2: 82/100 — authentic dashboard PDF + per-finding verdicts (0 real findings, no code change) · goat-dev8
- 3e90c37 Docs: B4_PART_B status table and §7 no longer contradict §6 / live code · goat-dev8
and 49 more commits
Comments and questions
- No comments yet.