
Post-Quantum dApp
JanusLabs
Quantum-safe approval for every smart-contract upgrade.
About
Smart-contract upgrades are the most dangerous action in DeFi. Whoever can replace a proxy's implementation can rewrite every rule, including who gets paid. Radiant Capital and Bybit both lost funds to malicious upgrades signed by legitimate key holders. The cryptography held. The approval process failed. JanusLabs adds an independent ML-DSA-87 guardian to the only path that can upgrade a protected proxy. The protocol's existing multisig still proposes the upgrade. A public delay still runs. But nothing executes until a separately held post-quantum key signs the exact intent: both implementations, both code hashes, the init data hash, the nonce, the chain and the gate. Janus Lens rebuilds that intent from chain, checks the deployed bytecode and shows the guardian what they are signing. If anything changes between approval and execution, the approval dies. The demo on QoreChain Diana shows a compromised 2-of-3 multisig proposing a drain implementation. Every execution path is refused, the implementation never changes and the vault keeps its balance. The same gate also supports guardian veto, key rotation and lost-key recovery, all PQ-signed and delayed.
How it's made
Solidity 0.8.28 and Foundry for JanusGate, an EIP-1967 JanusProxy, a demo lending vault and a 2-of-3 stand-in multisig. JanusGate calls QoreChain's pqcVerify and pqcKeyStatus precompiles with low-level staticcalls and fails closed on empty return data. The guardian key is loaded from the registry, checked against a pinned hash, and required to be registered, algorithm 1 and possession-proven. TypeScript backend with viem, @qorechain/pqc, @qorechain/sdk, Drizzle and Neon. The janus CLI generates an encrypted random ML-DSA-87 guardian key, registers it with proof of possession, opens scoped EVM windows, rebuilds intents in Janus Lens, and signs or vetoes offline. Janus Watch indexes gate events into Neon and alerts when a proposed code hash matches no reviewed build. A read API serves the frontend. 63 Foundry tests use real ML-DSA-87 signatures generated through FFI. The Diana drill records real reverted transactions for the classical-only path, a foreign key, an altered intent and a direct proxy upgrade. Every claim is backed by a test or a Diana transaction hash.
Timeline
Pushed 11 commits to main
- 683d82d Merge main into design/brand-system and reconcile agent-state · Devendurance
- b38c5d4 Add mobile Figma previews for the landing page and UX states · Devendurance
- 9b26d31 Add JanusLabs design system and brand kit · Devendurance
- 4479f84 Add project page copy for the QoreChain submission · Devendurance
- 00379d6 Create audit evidence directory · Devendurance
and 6 more commits
Comments and questions
- No comments yet.