Hyquard Vault
A vault contract for any EVM chain. Each withdrawal needs your wallet and a hash-based one-time signature, verified on-chain.
The vault is a smart contract that you deploy on any EVM chain. At setup, your browser makes a secret and derives 1,024 one-time Winternitz keys (w=16, keccak256). The vault stores one Merkle root of these keys.
Each withdrawal comes from your wallet and carries one one-time signature for the recipient, token and amount. The contract checks the signature, the Merkle proof and that nobody used the key before. A stolen wallet key alone moves nothing.
Prototype results
| Measure | Result |
|---|---|
| Unit tests | 9 / 9 pass (native and ERC-20 withdraw, every leaf once, not-owner, reuse, tampered recipient/amount/token, chain forgery, bad proof) |
| Mainnet forks | Robinhood Chain 4663, Elysium 99901, HyperEVM 999: factory, vault, deposit, 3 withdrawals signed in JavaScript, replay rejected on each |
| Gas per withdrawal (receipt, height 10) | 199,406 to 256,358 across the 3 forks |
| Vault create gas | 682,634 |
| Keygen, 1,024 keys | 8.8 s (Node, @noble/hashes) |
Two independent implementations (Solidity and JavaScript) check the prototype, and their output must agree byte for byte. The app's key lab uses the same scheme in your browser.
Limits
- The vault protects only the funds in it. Funds outside the vault still use your normal key.
- If you lose the vault secret, your funds stay locked. There is no recovery path yet, because each recovery path is also an attack path.
- One tree holds 1,024 withdrawals. Key tree rotation is In progress.
- The vault runs on EVM chains first; other chains are In progress.
- The contract has no audit.