Benchmark
What a post-quantum signature costs: gas for each vault action, measured in the project's tests, and ML-DSA-65 timed against ECDSA in your own browser.
Gas per action
Checking an ML-DSA-65 signature in the EVM is heavy work. Registering the key once moves most of it out of every later action.
| Action | Gas | Measured in |
|---|---|---|
| Owner action, key registered | 3,782,632 | forge test |
| Owner action, key not registered | 9,295,283 | forge test |
| Register a key (once per key) | 14,111,614 | forge test |
| Rotate the owner key | 4,232,858 | wallet test, testnet fork |
| Send after rotating, new key registered | 3,774,281 | wallet test, testnet fork |
| Agent payment within allowance | 66,686 | forge test |
| For scale: one ECDSA check (ecrecover) | 3,000 | EVM precompile price |
Every ML-DSA-65 signature is different, so the same action moves by a few thousand gas from run to run. The forge numbers come from test_gas_signedTransfer in test/QVault.t.sol. Agent payments carry no post-quantum signature: the agent signs with its own ECDSA key, inside the allowance the owner set. See what this costs in dollars.
Speed in your browser
The same libraries the wallet uses, @noble/post-quantum and @noble/curves, timed on this device. Nothing is sent anywhere.
Your device:
| Operation | ML-DSA-65 | ECDSA (secp256k1) |
|---|---|---|
| Make a key | – | – |
| Sign a 32-byte digest | – | – |
| Check the signature | – | – |
Sizes
| ML-DSA-65 | ECDSA (secp256k1) | |
|---|---|---|
| Public key | 1,952 bytes | 33 bytes |
| Signature | 3,309 bytes | 65 bytes |
| Seed you back up | 32 bytes | 32 bytes |
How it was run
- Contracts
- Solidity 0.8.37 with via-IR, optimizer on at 200 runs, EVM version Cancun. Built and tested with Foundry (forge 1.9.0).
- forge test
forge test -vv, all 20 tests passing, run on 4 December 2026.test_gas_signedTransferreadsgasleft()around each call (registering a key is two calls,registerAandregisterT, counted together), so its numbers are the gas spent inside the vault. They leave out the 21,000 base cost of a transaction and the calldata for the 3.3 KB signature.- Wallet test
node test.mjsruns the wallet's own code against a local anvil fork of Robinhood Chain Testnet (chain 46630). Its numbers come from transaction receipts, so they are the whole transaction. Nothing is sent to a real network.- In your browser
- @noble/post-quantum 0.7.1 and @noble/curves 2.4.0, bundled into this page. The digest is 32 random bytes, like the EIP-712 digest the wallet signs. Browsers round timers, so very fast operations show coarse steps.