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.