PostQ
$POSTQ
AppDashboardCanary$POSTQDocs

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

ThreatAnswer
Quantum attacker derives your wallet keyThe wallet can't move vault funds; the vault needs an LMS signature
Leaf reuse leaks key materialCounter on chain, ledger on the device, refusal to re-sign a leaf
A signature replayed laterEpoch, leaf, vault, program and network are inside every signed message
Someone opens your vault first with a hostile cosignerThe vault id commits to the root and the options
A closed vault reopened to reset its counterClosing leaves a tombstone; reopening fails
Wallet swaps the destinationThe program rebuilds the message and checks every account against it
Fake token program or wrong source accountOnly SPL Token and Token-2022; the source must be the vault's canonical token account
Griefing by pre-funding a new account's addressAccounts are created so that lamports sent first don't block them
A failed signature lingersThe app tracks it as pending and blocks new signing until handled

#Invariants

  1. Nothing leaves a vault without a valid LMS signature of the current key over the exact actions.
  2. No leaf counts twice.
  3. No state is written and no transfer happens before the signature verifies.
  4. A vault account ends every transaction with 0 SOL or at least its rent-exempt minimum.