Threat model
#Actors
- Owner: holds the 24 words and a wallet for fees.
- Quantum attacker: can compute Ed25519 private keys from public keys.
- Thief: has malware, a phishing site or a stolen backup.
- Anyone: can read the chain, submit transactions and front-run.
#Boundaries
The words, the key tree and the signing happen in the page. The chain sees the root, the signatures and the leaf counter. The wallet sees fee transactions only.
#Threats and answers
| Threat | Answer |
|---|---|
| Quantum attacker derives your wallet key | The wallet can't move vault funds; the vault needs an LMS signature |
| Leaf reuse leaks key material | Counter on chain, ledger on the device, refusal to re-sign a leaf |
| A signature replayed later | Epoch, leaf, vault, program and network are inside every signed message |
| Someone opens your vault first with a hostile cosigner | The vault id commits to the root and the options |
| A closed vault reopened to reset its counter | Closing leaves a tombstone; reopening fails |
| Wallet swaps the destination | The program rebuilds the message and checks every account against it |
| Fake token program or wrong source account | Only SPL Token and Token-2022; the source must be the vault's canonical token account |
| Griefing by pre-funding a new account's address | Accounts are created so that lamports sent first don't block them |
| A failed signature lingers | The app tracks it as pending and blocks new signing until handled |
#Invariants
- Nothing leaves a vault without a valid LMS signature of the current key over the exact actions.
- No leaf counts twice.
- No state is written and no transfer happens before the signature verifies.
- A vault account ends every transaction with 0 SOL or at least its rent-exempt minimum.