Skip to content
QORECHAIN
Register

Quantum Pass

Brankass

Non-custodial time-lock, inheritance, and post-quantum emergency veto vault on QoreChain.

Share on X

About

Brankass is a non-custodial time-lock, inheritance, and post-quantum emergency veto vault on QoreChain. It locks native QOR in an immutable Solidity contract that checks the owner's ML-DSA-87 key on chain and lets a 4,627-byte ML-DSA-87 signature override and rescue funds if the owner's classical key is ever exposed. Long-horizon self-custody fails in two ways. If an owner loses access or becomes incapacitated, standard EOAs leave funds stranded forever. If a quantum computer breaks secp256k1 before a time-lock matures, an attacker can impersonate the owner and cancel or drain the vault, and standard EVM chains have no post-quantum override path. Brankass uses QoreChain's native post-quantum primitives at every step. Before creating a vault, BrankassVault queries precompile 0x0a02 (pqcKeyStatus v3.2.4) to verify that the owner holds a registered ML-DSA-87 key and, when strict mode is enabled, proof of possession. The owner also commits only a 32-byte keccak256 hash of a locally generated 2,592-byte FIPS-204 ML-DSA-87 veto public key. If the classical key leaks, the owner signs a domain-separated rescue payload offline (binding chain ID, contract address, vault ID, recovery address, and nonce) and any account or relayer can call quantumEmergencyVeto. Precompile 0x0a01 (pqcVerify) checks the 4,627-byte signature inside Solidity, discards it without writing it to storage, and sweeps the locked QOR to the signed recovery address. On the diana testnet (chain ID 9800), BrankassVault is deployed at 0x9ee6a0a4db63d4cd7733d704b849b6c4bc8cb7b2 (block 11,087,939, 7,862 runtime bytes). We verified a hybrid-signed MsgOpenEVMWindow (block 11,087,795) and an app-originated hybrid MsgSend check-in (block 11,092,234), both carrying PQCHybridSignature with pqc_hybrid_verify status verified. Vault #1 locked 0.05 QOR in a 60-second Dead Man's Switch (block 11,092,922, ownerPossessionProven true), recorded an on-chain heartbeat (block 11,092,937, 38,374 gas), and completed a live ML-DSA-87 quantumEmergencyVeto rescue (block 11,093,002, 302,768 gas). Vault #2 locked 0.10 QOR (block 11,094,834) and completed a beneficiary maturity claim after unlock (block 11,094,880, 44,960 gas). brankass.vercel.app runs with zero backend servers and connects directly to QoreX for Live Diana execution (including public relayer vault discovery and Vault ID lookup), alongside an Interactive Sandbox that runs real browser-side ML-DSA-87 cryptography without testnet gas. One zero-install command, bash scripts/verify.sh, re-checks all 14 live chain and app claims in about 10 s. npm test runs 11 unit and edge-case checks in about 1.1 s, THREAT_MODEL.md covers 4 adversary classes, LIMITS.md states current testnet boundaries, and PROOF.md lists a diana transaction hash for every claim.

How it's made

Brankass pairs a 347-line immutable Solidity contract with a pure client-side Next.js 15 and TypeScript web app. BrankassVault.sol compiles with solc 0.8.39 targeting evmVersion paris (23 ABI entries, 7,898 creation bytes) with checks-effects-interactions and a reentrancy guard, and has no admin, pause, or upgrade key. The official create-qorechain-dapp evm-solidity starter is preserved in apps/scaffold. On the TypeScript side, @qorechain/evm handles typed viem clients, Diana network config, EVM window polling, and window-rejection classification. @qorechain/pqc runs FIPS-204 ML-DSA-87 key generation, deterministic signing, local verification, and SHAKE-256 recovery note hashing entirely in the browser. @qorechain/wallet-adapter handles EIP-6963 QoreX discovery and native qorexSignAndBroadcast for hybrid Cosmos check-in transactions. Contract deployment is supported both from scripts/deploy.ts and directly from the browser via QoreX so testnet deployment never requires exporting a private key into .env. Real testnet integration surfaced concrete issues that static compilation missed. First, our early workspace tried to broadcast MsgOpenEVMWindow from the dApp, which live QoreX testing proved is intentionally refused (QOREX_REFUSED_TYPE_URLS) because spending windows must be opened by the user inside the QoreX extension. We redesigned the readiness panel to guide users through in-extension EVM windows (selecting Any contract) and replaced the button with a dApp-originated hybrid MsgSend check-in (1 uqor self-transfer with memo). Second, live queries against api-testnet.qore.host/qorechain/pqc/v1/account/{address} revealed a schema mismatch where our REST fallback expected pqc_public_key instead of found and account.public_key. Third, auditing relayer flows showed the veto dropdown initially queried only owner/beneficiary vaults; we added public 1..vaultCount scanning, on-demand Vault ID lookup, and an empty live recovery-address safety default. The client veto message encoder matches Solidity abi.encodePacked byte for byte, confirmed live on Diana when Vault #1's 4,627-byte ML-DSA-87 signature passed 0x0a01 in block 11,093,002. GitHub Actions CI (.github/workflows/verify.yml) enforces scripts/check-hygiene.mjs, byte-for-byte Solidity artifact reproducibility, strict ESLint, 11 unit tests, and offline production builds with self-hosted woff2 fonts. Both 0x0a01 and 0x0a02 are active on qorechain-diana only and not yet enabled on qorechain-vladi mainnet; multi-heir splits and ERC-20 custody come next.

Timeline

BrankassQuantum Pass

Pushed 8 commits to main

  • 3ea7495 style(ui): format technical identifiers as inline code chips across all 9 FAQ items · rebelchain
  • b6df42e fix(ui): render FAQ inline code chips and copyable terminal command block · rebelchain
  • 86d75e5 feat(ui): add GitHub repository links and scrollable judge-first FAQ on landing page · rebelchain
  • f54fb02 fix(ui): align EVM access window guide with actual QoreX extension fields · rebelchain
  • 09b7701 feat(ui): add guided QoreX EVM Auth Window instructions and fix countdown hydration warning · rebelchain

and 3 more commits

BrankassQuantum Pass

Pushed 1 commit to main

  • 7523c63 Merge pull request #1 from rebelchain/feat/ui-ux-polish · rebelchain
BrankassQuantum Pass

Pushed 1 commit to main

  • 9f7b76d docs: add YouTube demo video link to README top navigation · rebelchain
BrankassQuantum Pass

Pushed 27 commits to main

  • 4b24aa9 docs(proof): record verified end-to-end Diana Testnet Vault #1 createVault, heartbeat, and ML-DSA-87 emergency veto txs · rebelchain
  • 3886787 style(ui): replace lighthouse stock images with bespoke Brankass post-quantum vault banner and hero illustration · rebelchain
  • 5333fd9 docs: verify live Vercel deploy (Gate 6), record hybrid check-in tx, and add 3-min demo script · rebelchain
  • a740028 docs: audit and align all docs with live Diana deployment, add AI_USAGE.md, remove duplicate docs/PROGRESS.md · rebelchain
  • 1f29bd9 test: add unit and edge-case test suite for ML-DSA-87 veto, protobuf MsgSend, error handling, and contract artifact · rebelchain

and 22 more commits

BrankassQuantum Pass

Pushed 1 commit to main

  • 0292867 docs: add concise Brankass CONTRIBUTING.md guide · rebelchain
BrankassQuantum Pass

Pushed 1 commit to main

  • aec9c9c docs: add concise Contributor Covenant 2.1 CODE_OF_CONDUCT.md · rebelchain
BrankassQuantum Pass

Pushed 1 commit to main

  • 2d26b45 docs: restructure PROOF.md with Numbers, clickable tx ledger, Not shown yet, and verify.sh first · rebelchain
BrankassQuantum Pass

Pushed 1 commit to main

  • 985951e docs: update SECURITY.md and ARCHITECTURE.md, remove stale diagram labels and fix compile.ts ref · rebelchain
BrankassQuantum Pass

Pushed 1 commit to main

  • 5cb79ed docs: restructure LIMITS.md and THREAT_MODEL.md in auditor-ready sourced format · rebelchain
BrankassQuantum Pass

Pushed 1 commit to main

  • bda4830 docs: restructure AI_USAGE.md with clear agent/team split, steering, checks, and caught mistakes · rebelchain
BrankassQuantum Pass

Pushed 1 commit to main

  • d44771e docs: restructure README header, horizontal TOC, and prose Problem section · rebelchain
BrankassQuantum Pass

Pushed 1 commit to main

  • dbd19f0 docs: update README cover banner to live Brankass landing page screenshot · rebelchain(not counted: no real change)
BrankassQuantum Pass

Completed full on-chain lifecycle verification on qorechain-diana (Vault #1 createVault + heartbeat + 0x0a01 ML-DSA-87 quantumEmergencyVeto, Vault #2 createVault + maturity claim), added public relayer vault lookup in the live workspace, and shipped zero-install claim verification (bash scripts/verify.sh — 14/14 checks passing) with green GitHub Actions CI.

https://github.com/rebelchain/brankass/commit/583d18dc67cf142510d182e852f0505badf47128𝕏 rebelxyzCompleted lifecycle verification on qorechain-diana (createVault + heartbeat + 0x0a01 ML-DSA-87 quantumEmergencyVeto, & createVault + maturity claim), added public relayer vault lookup in the live workspace, and shipped zero-install claim verification (bash scripts/verify.sh ).
BrankassQuantum Pass

Completed full on-chain lifecycle verification on qorechain-diana (Vault #1 createVault + heartbeat + 0x0a01 ML-DSA-87 quantumEmergencyVeto, Vault #2 createVault + maturity claim), added public relayer vault lookup in the live workspace, and shipped zero-install claim verification (bash scripts/verify.sh — 14/14 checks passing) with green GitHub Actions CI.

BrankassQuantum Pass

Pushed 1 commit to main

  • 583d18d fix(ci): self-host woff2 fonts via next/font/local and cache .next/cache for deterministic offline/CI builds · rebelchain
BrankassQuantum Pass

Pushed 1 commit to main

  • 7be990a docs: add judge-first Verify It Yourself, Codemap, CI badge, and measured Diana gas metrics · rebelchain
BrankassQuantum Pass

Pushed 1 commit to main

  • f166b48 ci(verify): add zero-install 14-claim live verifier, repo hygiene/link guard, and GitHub Actions CI · rebelchain
BrankassQuantum Pass

Pushed 1 commit to main

  • bc7f359 chore(hygiene): remove dead hook and legacy eslintrc, add .nvmrc, and enforce ESLint during next build · rebelchain

Comments and questions

  • No comments yet.