a latch your
wallet key
can't lift.

If AI or a quantum computer ever learns to crack Solana wallet keys, whoever cracks yours can take everything in it. Latch puts a second lock on this coin that a cracked key can't open. Turn it on, and your tokens stay put even if your wallet key doesn't.

optionaloff until you turn it on
buyingnever changes
one codeper sell or send
LATCHdrag to turn it · click to open it

the problem

on solana, your address is your key

Ethereum researcher Justin Drake has warned that AI might find a shortcut for working out a wallet's private key from its public key, in months rather than the decades quantum computers were expected to take. Nobody has done it yet. But if it happens, every wallet whose public key is known can be emptied.

  1. Ethereum can hide. An Ethereum address is a fingerprint of the key, not the key itself. Drake's advice, "bunker mode", is to move funds to a fresh address that has never sent anything, so the key stays hidden.
  2. Solana can't. A Solana address is the public key. Every wallet has shown its key from the moment it existed, so there is nowhere to hide it.
  3. So Latch makes the key not enough. Instead of hiding the key, the coin itself demands a second proof that has nothing to do with the key, built only on hashing, which neither AI shortcuts nor quantum computers are known to break.
1 · body2 · shackle3 · cylinder

how it works

a lock in three parts

1 · your codes. Turning the latch on makes 1,024 single-use codes on your device. Only a fingerprint of them goes on chain, so nobody can work the codes out from it.
2 · one code per move. Every sell or send uses one code, made for that exact amount and that exact destination. A code works once and never again.
3 · the coin checks. On every transfer, the coin asks one question: is this account latched? If it is, no matching code means no transfer.

latch off the default

Nothing is different. Buy, sell and send like any other coin. Nobody can turn the latch on for you.

latch on

Selling or sending takes one code, which this site supplies for you along with one wallet approval. Buying never needs a code. Nobody else can move your tokens, even with your wallet key.

live · in your browser

watch a code get made

Type a transfer and sign it with a one-time key. Your browser just made 1,024 of them with the same code the holder app uses; nothing leaves this page. Each of the 67 chains is SHA-256 applied over and over: the signer walks up to the digit of the transfer's digest, the checker walks the rest of the way, and every chain has to land on the key the fingerprint on chain commits to.

digest

scroll the picture sideways to see all 67 chains and the path to the root.

Then change the amount by one. The signed code stays put and the picture shows what a thief would need: every red chain has to run backwards, which means inverting SHA-256.

the attack

someone has your wallet key. now what?

Say an AI shortcut, a quantum computer or a plain leak hands someone your wallet key. They can sign anything as you. Play the thief: below are the moves, run against the program itself.

you hold the key for a latched wallet. reading its latch…

Each try is built as the real transaction, signed as that wallet, and simulated by Solana itself with signature checks off. Nothing is sent.

  • Connect the wallet on this site to sellblockedIts codes aren't in the wallet. They live on the owner's device and in their backup, so the site has nothing to sign with.nothing to try
  • Send its tokens to your own walletblockedThe coin checks every transfer. No code, no transfer, whatever app or script you use.
  • Sell them into the poolblockedA sell is a transfer into the pool, so it meets the same check.
  • Turn the latch offblockedTurning it off takes one of the owner's codes too.
  • Latch it again with codes of your ownblockedLatching over a latch is refused, and replacing codes takes a current code.
  • Take the wallet's SOLpossibleOnly this coin is latched. Nothing a coin can do protects SOL; that needs Solana itself to change.
control. The same send from a holder with no latch, to show the coin isn't just refusing everything.

If you think your key leaked: send, don't sell. A sale pays SOL into your wallet, and whoever has your key can take it from there. Move the latched tokens to a fresh wallet first: the send is bound to that wallet, so nobody can redirect it.

but couldn't AI crack the codes too?

  1. The danger isn't guessing. Nobody can guess a wallet key, AI or not: there are more possible keys than atoms in the universe. The worry is a mathematical shortcut. A wallet's public key is built from its private key with curve maths that has hidden structure, and a clever enough method, quantum or AI-found, could run that structure backwards.
  2. The codes are not small. Each code is 2,144 random-looking bytes, made from a 256-bit secret. What sits on chain is only a fingerprint of them, made with SHA-256 hashing.
  3. Hashing has no structure to exploit. A hash scrambles its input with no maths linking the output back to it. The best known quantum trick only halves the work, which still leaves more tries than could ever be done. That is why the official post-quantum standards include hash-based signatures as the most conservative choice, and why Bitcoin mining runs on the same SHA-256. If SHA-256 fell, far more than this coin would break.
  4. The weak spot is your backup, not the chain. Nothing secret goes on chain, so nobody can attack your codes from there. They can only be taken from your backup: your 24 recovery words, or your backup file together with its passphrase. Keep the words on paper and the file somewhere private.

Two things the latch can't fix: someone who gets your recovery words, or your device or backup file plus the passphrase, has your codes too, and the latch has to be on before keys can be cracked. After that, someone who can forge your key could turn on a latch of their own first.

proof

tested on chain

The whole flow has been run on chain with this program, from launching a coin to a latched sale.

  1. 1Launch a coin on its curve, with the hook attached
  2. 2Buy, then sell with the latch off. The coin lets it through
  3. 3Turn the latch on. Only a fingerprint of the codes goes on chain
  4. 4Sell without a code. Refused by the coin, NotAuthorized
  5. 5Upload a code made for that exact sale
  6. 6The coin checks the code and lets that one sale through. The code is used up
  7. 7Sell again with the next code. Authorized the same way
Every attack from the security review was also replayed against the program and refused.

verify it yourself

don't take our word for it

Latch's protection is a hash-based one-time signature that the on-chain program checks before any latched token moves. This section runs the same math in your browser, so you can confirm it without trusting this site's server.

1 · the answer key: test vectors

A fixed set of inputs and every output the scheme produces from them: signatures, one-time keys, the key tree and the exact messages that get signed. The on-chain program's tests, the command-line client and this page are all checked against the same file, so all three compute the same bytes.

download vectors.json

Writing your own checker? Each rule is spelled out in the file's scheme and digests.formulas fields. SHA-256 is the only primitive.

2 · check a latched transaction

Paste the signature of any latched send, sell, lift or renew. The server fetches the raw transactions: that one, the uploads that carried its one-time signature, and the one that registered the key set. Your browser checks their wallet signatures, reads every value out of the signed bytes, rebuilds the signed message, walks the 67 hash chains and climbs the key tree to the registered root.

3 · what a pass means

it proves
A one-time key from the set the holder registered signed exactly that action: that amount, to that account, at that point in the account's history. Change any byte and the climb ends at a different root. The site's server can't fake a pass: it only hands over wallet-signed transactions, and this page checks them.
it does not prove
That the transaction succeeded (the explorer shows that), or that nobody else holds the holder's backup. This page's own code comes from this site; if you'd rather not trust that either, every rule is in vectors.json.
why hashes
A quantum computer breaks the elliptic-curve keys Solana wallets use. It does not break SHA-256 in any practical way: the best known attack only halves the security, leaving 128 bits.