Code

Everything this site runs on.

The contracts, the signing code and the app, as served right now, with their SHA-256 so anyone can compare what runs on chain and in the browser.

On chain

Deployed contracts

ContractAddressVerified source
Robinhood Chain · QuantumVaultFactoryV20x69c150f344f36572BB8f7810e06980B890501263Sourcify
Robinhood Chain · QuantumVaultV2 (implementation)0x6487fa719C6c4b9DBed4622CA69077777082cA84Sourcify
Robinhood Chain · deployment0xbf4a5f7b20aa8f5d8c4526be39c43da49c19c7bab2b4780f5915913838da565cblock 129375407
Robinhood Chain · QuantumVaultFactory (v1, legacy)0x0F96E2cE220BED2895DD93ed97E56372fBA33F4ASourcify
Robinhood Chain · QuantumVault (v1 implementation)0x43a20eD0EE77226c14fB2c7b55ad48115f1Afc31Sourcify
Robinhood Chain · QuantumVaultFactoryV30x6e9D71a5e0d2c5BC8c5F09572d07f02B51A875d6Sourcify
Robinhood Chain · QuantumVaultV3 (implementation)0xD3eA435A657F6D1fF6C92709A216E17eBd0EC588Sourcify
Robinhood Chain · MLDSA65Verifier (FIPS 204)0xA6a6811188769EA93cB97629EDBC2588F417DbE2Sourcify
Robinhood Chain · SLHDSA128sVerifier (FIPS 205)0x4b2089E758B83b6fcd7F07C7F0D3195BBf25E716Sourcify
Ethereum · QuantumVaultFactory0xc7FF6660ea127086B1249C1363697F85D7E2dA0bSourcify
Ethereum · QuantumVault (implementation)0x1250E71f04E2D2daDCE295a98dAC311181eB4e9bSourcify
Ethereum · deployment0x35baeba647273aadde3f47a66670159629fcd5c46dfa3d33896ddd81cd0f0095block 26552190
Base · QuantumVaultFactory0xDf308a884B8ed62bfF8aBbE5A19d59b4CB8dAEB3Sourcify
Base · QuantumVault (implementation)0x4401394d68c63714BCACA93c7769D662E6dF5bDcSourcify
Base · deployment0x09241d8268d009abbc699b1a1c7f4b752b4eca0d34c5c2b26c28e5da71b8bb87block 65694776
Arbitrum One · QuantumVaultFactory0xDf308a884B8ed62bfF8aBbE5A19d59b4CB8dAEB3Sourcify
Arbitrum One · QuantumVault (implementation)0x4401394d68c63714BCACA93c7769D662E6dF5bDcSourcify
Arbitrum One · deployment0x1e645809ba0a0c31f63ff37cefc7824ef8b71a5c456821e0281f09f0986039b2block 529882571
OP Mainnet · QuantumVaultFactory0xDf308a884B8ed62bfF8aBbE5A19d59b4CB8dAEB3Sourcify
OP Mainnet · QuantumVault (implementation)0x4401394d68c63714BCACA93c7769D662E6dF5bDcSourcify
OP Mainnet · deployment0x9b29122569825ca9588204282eec6f508b6551d0540ae7ebfb30d950613689bbblock 160365550
BNB Smart Chain · QuantumVaultFactory0xDf308a884B8ed62bfF8aBbE5A19d59b4CB8dAEB3Sourcify
BNB Smart Chain · QuantumVault (implementation)0x4401394d68c63714BCACA93c7769D662E6dF5bDcSourcify
BNB Smart Chain · deployment0xceac11addb93922f3717f2370139890d1e902efedfcb470f8eb62dc63b9ced79block 137253506
Polygon PoS · QuantumVaultFactory0xDf308a884B8ed62bfF8aBbE5A19d59b4CB8dAEB3Sourcify
Polygon PoS · QuantumVault (implementation)0x4401394d68c63714BCACA93c7769D662E6dF5bDcSourcify
Polygon PoS · deployment0xa62dd51339cd7f083daca89874faab266396ea9ba2a8b6776ef78bd434a0db0cblock 98416281

Token utility

Plans and HASHFORT

ContractAddressVerified source
Robinhood Chain · HashfortPlans

Pro 9 USDG and Team 49 USDG per 30 days, paid straight to the treasury. planOf() gives Pro to any account holding 1,000,000 HASHFORT.

0x5CE14d54D3b4A444A2802d9EB0a8347bB50c791FSourcify
Robinhood Chain · HASHFORT token0xAd961b8fDEF6d74b48eDc07A2cf9B4Cf6a1a04e8ERC-20

In use

Vaults on Robinhood Chain

Every vault the factories created, read from the chain now (VaultCreated), and how many vault-key operations each has run (Executed: a hash-based signature the contract verified).

VaultCreated inVault-key operations
0x8988309d720c2a826C2571cDD79610377e1a17D0

v3

0xeaa17a90fd993b02…1 · latest
0x45C366Cd729365FD38c88D94526DAeC1Efe41Cb6

v2

0x8fff5a1722c1d683…1 · latest

Source

Files

FileLinesSHA-256
contracts/HashSig.sol

Hash-based signature verifier (WOTS+ one-time keys in a Merkle tree, keccak256 only)

72c5553dc25042388befb93be87775a1d5486bd50c1a550786eb9352e4c964b225
contracts/QuantumVault.sol

The vault (v1): daily key with limits, vault key for everything else, guardians, no admin

259e485ec5d96f83a6108b560810ca2c885b279d05d17cc252624d53e5bc545ded6
contracts/QuantumVaultV2.sol

The vault (v2, Robinhood Chain): v1 plus scoped agent keys (limits, allowed addresses, expiry) and Sentinel keys that can only freeze

364a78e16d5f228e53f7bd48e93e76135b58781d34b3cb7af62e2af60e58cafb23e
contracts/QuantumVaultFactoryV2.sol

Factory for v2 vaults

59921f8b3a25a4ff872756b443aa6911f4d29de5059e5b2c81655bf820e23cdd17
contracts/plans/HashfortPlans.sol

Free / Pro / Team plans in USDG, admin-free; HASHFORT holders get Pro on chain (planOf reads the token balance)

77f246e19dc8c412a292cf03015af060de0544ea5ba09924abfb0324099d4ff8ae
contracts/v3/QuantumVaultV3.sol

The vault (v3): ML-DSA-65 primary key, SLH-DSA-SHA2-128s recovery key with a 2-day delay, plus every v2 feature

431fa813e30ea11d109cb1bf89c4da8810a188678261145384392186a143f11cef8
contracts/v3/QuantumVaultFactoryV3.sol

Factory for v3 vaults; stores each primary key's verification data as contract code

87287b51965ad4fdbf12b4a5cfec7c6ea1bbdfc6aedc9a0e7d03cfae7ab0a403ae
contracts/mldsa/MLDSA65Verifier.sol

ML-DSA-65 (FIPS 204) verification on chain, plus checkExpansion to audit a vault's stored key data

3226b84ede8d05d049c18bbc8e02c97fefa7046faa7a2a9d33749a42161a4863466
contracts/mldsa/SLHDSA128sVerifier.sol

SLH-DSA-SHA2-128s (FIPS 205) verification on chain, using the SHA-256 precompile

13252a63e348a08bf97bf71a8c3b48ab6bafa537a572b93dc298373d6ba4153ca99
contracts/mldsa/Shake.sol

SHAKE128/256 (FIPS 202) in Yul, generated by scripts/gen/keccak_yul.py

2051a65bd09ff4f213763c1c6fb4be5d7e3f841abdcf57ed7b484cbd85f62ac5e71
sdk/mldsa65.mjs

What the app computes from an ML-DSA-65 public key before storing it on chain

61cc62ff8b9ad4a337677d51377c65adaba10e31bac0e113fffcc6e7134b256f65
test/vault-v3.test.js

v3 tests: browser-made ML-DSA-65 and SLH-DSA signatures, replay, rotation, recovery delay, guardians

157124fe27e02dac9f2fec3d918915dd60e811e08f28b28d28496c0323cbf77acf5
test/mldsa65.test.js

ML-DSA-65 verifier tests against signatures from the browser library

598768b0fb8979e5840c7c539042344c5d305767ee76067608a12e862cb18b71bc
test/slhdsa.test.js

SLH-DSA-SHA2-128s verifier tests against signatures from the browser library

376829a729090252f61993d9d7ef380c905aeac45acc88d8df712d839d51ab20d1
contracts/QuantumVaultFactory.sol

Deterministic vault addresses (CREATE2 + EIP-1167 clones of one immutable implementation)

59938d05ba6577a52c04f4347d0c95d3fa50ef8e6d6078f5c958790408c9c534ec
sdk/hashsig.mjs

Key trees, signing and the operation digest, the same code the app runs in your browser

11852f4623655f7830ce7670ecf474f29d12d918b50991c2109c66a972195cb0f55
web/app/app.js

The vault app: key generation, Recovery Kit, signing, transactions through your wallet

1028d81e4ce3c56110fea3832fd4a443f37949c886c97123884ea200e8372090eba4
server.mjs

This web server: static files, read-only chain proxy, exposure scan (EVM and Bitcoin)

463de420063ffd2ac3e75f867e95e2c0e5b53d1fc3e16b2475e94adf07145e73485
services.mjs

Transaction auditor (simulation and rules) and x402 payments in USDG on Robinhood Chain

3933a5b15c89bf47edf2dbf544caf11f92c4ce9b860acbafa27da968c6b0cb4eef8
agents.mjs

Agent keys, agent runtime (pays x402 through agentSpend), MEMORY.md, and the Sentinel watcher

3948c101e044bd3912cc1a636da43032cfe5ef5c38fd72639db85cc923cd2e6f57c
ai.mjs

Optional language model for summaries and the agent's reasoning (key sealed on the server)

61838d08e298465891dc5d9652176b74743ae68553062f9bef7592e8e19c0ee840
relayer.mjs

Gasless relayer for vault-key operations (only Hashfort vaults, simulated first)

866c2ebd701c80714cbe8f2e1bcfc2c70a78a895196eda85f85b9371ca53792bbe
test/vault-v2.test.js

Tests for agent keys, Sentinel freeze, and the vault key during a freeze

116969a91dc565ea4ed25be606c1f20fb4c639f8de7760028962a1908a24a613424

Build

Compile it yourself

solc 0.8.24, optimizer on, 10,000 runs, evmVersion shanghai
v3 primary key   ML-DSA-65 (FIPS 204): q = 8380417, (k, l) = (6, 5), signature 3,309 B, public key 1,952 B; SHAKE128/256 in Yul
v3 recovery key  SLH-DSA-SHA2-128s (FIPS 205): n = 16, h = 63, d = 7, a = 12, k = 14; signature 7,856 B; SHA-256 precompile
Standard key     HashSig: WOTS+ n = 32 bytes, w = 16, 67 chains, Merkle height 10 (1,024 one-time keys); keccak256 with tweaks
Test suite: 40 tests (Hardhat): signatures, replay, forgery, expiry, limits, rotation, guardians, factory, agent keys, Sentinel freeze,
ML-DSA-65 and SLH-DSA-SHA2-128s verifiers against browser-made signatures, v3 vaults (primary key, recovery delay, guardians)