The charter.
What a Quantum Bank account is, exactly, and how far each claim has been checked. The scale is honest: live on-chain, tested on the real bytecode, or planned.
Parameters
Item
Value
Note
Signature scheme
Winternitz one-time signatures over keccak256, w = 16, 64 message digits + 3 checksum digits (67 chains), in a Merkle tree of height 8
XMSS / LMS family, SP 800-208 class
Key
keccak256(pub ‖ root): a public tweak seed and the Merkle root of 256 one-time public keys
32 bytes on-chain
Chain step
F(x) = keccak256(tweak ‖ x), tweak = keccak256(pub ‖ leaf) xor chain index
domain-separated per leaf and chain
Transaction digest
keccak256(abi.encode(TX_TYPEHASH, chainId, account, epoch, nonce, hashCalls, relayer, maxFee))
binds chain, book and courier
Spent cheques
one 256-bit bitmap per book; a reused leaf reverts before any call runs
QB: leaf spent
Rotation
rotate(newKey), signed by the live book; epoch + 1, bitmap cleared, old key refused at once
same address
Recovery
startRecovery(newKey, sig) against the sealed key, effective after recoveryDelay (48 h, 1 h to 30 days), cancellable by the live key
two keys to steal, plus time
Cards
setDevice(device, target, allowance, window, expiry): ECDSA device keys, never allowed to call the account itself
classical, scoped, revocable
Vault
depositVault, noticeWithdrawal (vaultNotice = 7 days, 1 h to 90 days), withdrawVault, cancelWithdrawal; every execution ends with balance ≥ vault
no key spends it early
Issuance
the branch deploys with CREATE2(key, recoveryKey, salt); it takes back from the new account's balance at most bootCap (0.0005 ETH): 0.0002 ETH to the Treasury, the rest to whoever paid the gas
counterfactual accounts
Gas
a one-call payment ≈ 229k gas; a card payment ≈ 48k; opening ≈ 2.24M
measured on the in-process EVM
Chain
chain id 4663, native ETH
live
Status
Account contract
QuantumAccount: execution, chequebook verification, rotation, cards, vault, recovery
live on-chainBranch
QuantumBranch: counterfactual addresses, issuance fee, boot cap
live on-chainEnd-to-end tests
34 checks on the real bytecode in an in-process EVM: forged chain, replayed leaf, wrong courier, amount binding, batch, vault lock, card limits and window, rotation, recovery and veto
locally testedBrowser signer
the same scheme in TypeScript, bit for bit, checked against the contract by the tests
locally testedRelayer
posts cheques and openings; refunded only what the cheque allows
live on-chainIndependent review
none yet; the contracts are 10 kB and 12 kB of runtime
plannedToken $QB
governance of the Treasury parameters
plannedAddresses
Courier0x1C0BDEc6f41b4Dc240F28625B9549F54ae0A25e6live
RPChttps://rpc.mainnet.chain.robinhood.com4663
The verifier, in full
function verify(bytes32 key, uint256 spentBitmap, bytes32 digest, Sig calldata sig) internal pure returns (uint256) {
require(keccak256(abi.encodePacked(sig.pub, sig.root)) == key, "QB: wrong key");
uint256 bit = 1 << sig.leaf;
require(spentBitmap & bit == 0, "QB: leaf spent");
require(rootFromLeaf(leafFromSig(digest, sig), sig.leaf, sig.path) == sig.root, "QB: bad signature");
return spentBitmap | bit;
}
// leafFromSig: for each of 67 chains, climb F = keccak256(tweak || x) the remaining (15 - digit) steps,
// hash the 67 tops into the leaf. rootFromLeaf: 8 keccaks up the authentication path.