Quantum Vault
A Quantum Vault is an account of the Quubits program (["qvault", vault_id]) that releases funds only for a valid WOTS signature. No Ed25519 key, including Quubits', can move what is inside.
Create a vault
- Open Quantum Vault and choose Create a vault.
- Your browser generates a 32-byte master seed. It never leaves the browser and is never stored by the site.
- Back it up: download the seed file, write down the 24 words, or both.
- Confirm the backup by loading the file or typing three of the words.
- Open the vault on-chain with
vault_open(commitment), signed by your wallet. The vault id is the commitment of key 0.
Anyone with the seed can empty the vault. Nobody, including Quubits, can recover a lost seed.
Deposit
Deposits are plain transfers: SOL to the vault address, SPL tokens to token accounts owned by the vault. Anyone can deposit.
Withdraw
- Choose the asset, amount and destination.
- Load your seed file or type your 24 words. They are read in the browser only.
- The browser checks that the seed controls the vault's current key, signs the withdrawal with that one-time key, and wipes the seed from memory.
- Your wallet sends
vault_withdraw(SPL) orvault_withdraw_sol(SOL) with the signature and pays the network fee.
The program verifies the signature over this message:
"FIREFLY/VAULT/WITHDRAW/v1" || program_id || vault || seq (u64 LE) || mint
|| destination || amount (u64 LE) || next_commitment || salt (u32 LE)
The signature is bound to one vault, one sequence number, one asset, one destination and one amount, so it cannot be replayed or redirected. In the same instruction the vault's commitment becomes next_commitment (key seq + 1), relocking the remainder. The signer tries 256 salts and keeps the cheapest to verify.
| Step | Compute |
|---|---|
| WOTS verification and withdrawal | 390k–690k CU, about 1M worst case |
Vaults cannot be closed
This is on purpose. A vault's address depends only on its first commitment. If a vault could be closed, anyone could reopen it at the same address with seq = 0, and the first key's old signatures would verify again. Keeping the vault open costs only its rent (about 0.0015 SOL).
What stays unprotected
The wallet you deposit from and withdraw to is an ordinary Ed25519 wallet. Funds are quantum-safe while they are in the vault.