Skip to content
Lean Key
Mainnet · Unaudited beta

Two keys.
One vault.
Nothing to steal.

Every withdrawal needs your wallet and a one-time post-quantum key. Steal one, and you still have nothing. The rules are proven in Lean.

Developer builds for 7 browsers. Not in any extension store yet.

Mainnet · read from the chainreading…
Vaults opened
—
Held in vaults
—SOL
in open vaults
Withdrawals
—
each with two signatures
The idea

One key is a single point of failure.

Every wallet today

One key moves everything.

One signature you are tricked into is enough. And Ed25519 is the kind of key a large quantum computer would break first.

$83.85Mtaken by wallet drainers in 2025

Scam Sniffer, 2025 report (EVM chains, a lower bound) · CoinDesk on curves and quantum

Lean Key

Two keys of different kinds.

  • Your wallet
    Ed25519. Signs every transaction, as it does today.
  • A one-time key
    Hash-based, post-quantum. Signs one withdrawal, then is replaced.

A withdrawal needs both. You still decide what you approve, in both places.

The extension

Your second key. One extension.

Lean Key holds the one-time keys and asks before every signature.

  • 1Shows what you sign, decodedAction, amount, recipient and key, in plain words.
  • 2Simulates before it signsA one-time key is spent only on a transaction that will land.
  • 3Signs each key onceA journal refuses a second, different intent.
  • 4Works with any Solana appThrough the Wallet Standard, next to your wallet.

No withdrawal on mainnet yet, so the values are blank. The demo replays the first real one when it lands.

How a withdrawal works

Four steps. Two signatures.

Security model

Who can move your funds?

Threat model
  • You, with both keys
    Yes

    Your wallet and the one-time key, for every withdrawal.

  • A drainer with your wallet's signature
    No

    Has no one-time hash signature.

  • A quantum computer with your Ed25519 key
    No

    Breaks the curve, not the hash chains.

  • Someone with only your 24 words
    No

    Your wallet has to sign too.

  • The Lean Key team
    !Conditional

    No admin path, proven. But while the program is upgradeable, its upgrade authority is trusted: check it on /verify.

Formal verification

Proven, not promised.

The core rules of the program are theorems, checked by Lean's kernel on every build.

51
theorems
0
sorry
3
standard axioms
Twokey/Proofs/Machine.lean:365✓ Checked by Lean
theorem public_owner_key_cannot_move_funds :
    ∀ (calls : List Call) (w : World), w.vault.isSome = true → NoHashSignature e w calls →
      run e w calls = w

#print axioms Twokey.Proofs.public_owner_key_cannot_move_funds
'Twokey.Proofs.public_owner_key_cannot_move_funds' depends on axioms: [propext, Classical.choice, Quot.sound]
Proofs of specific properties. Not an audit.All 51 theorems
Install

Security, built into your browser.

Pick your browser. Each build is listed with its checksum in a signed release.

Release 0.1.0

Every archive is hashed in a manifest signed with Ed25519 and ML-DSA-65. Your browser can check it.

Verify the releasebuilt 2026-12-03
Built on
Solana
Proven in
LeanLean 4, through lean-svm
Works with any Wallet Standard wallet, including
PhantomSolflareBackpack
For developers

Prefer a terminal?

The same vault from a single binary, with a local validator built in.

# a seed, a vault, a withdrawal
$ leankey keygen --out pq.seed
$ leankey open --owner id.json --pq pq.seed
$ leankey send <vault> <to> 1.0 --owner id.json --pq pq.seed
sent 1 SOL to <to> (slot 7, key #0 → #1, 486,660 CU)
FAQ

Before you deposit

All questions
  • They are the only backup of the second key. Without them a vault can never be withdrawn from, by anyone. Write them on paper, keep two copies in two places, and pass the backup quiz before you deposit. Recovery and safety
  • No. It is an unaudited beta on mainnet: keep at most 10 SOL in a vault. Its core properties are proven in Lean, which is not the same as an audit. What the proofs do not cover
  • Each one-time key must sign exactly one intent. Two copies of the seed could sign two different intents with the same key, and two signatures of one key can reveal enough to forge a third.
  • Nothing beyond Solana's own fees: one signature, and a priority fee if you add one. Checking the hash signature used 486,660 to 647,820 compute units per withdrawal in 13 test runs.
  • No. Keys live in your wallet and in the Lean Key extension or CLI, encrypted with your password. The site only reads the chain and forwards transactions you have already signed.
  • SOL, SPL Token and Token-2022 tokens. Mints with a transfer hook are refused, because a hook could run code the intent does not describe.

Add the second key.

Install Lean Key, open a vault, and start with a small amount.

Connect a wallet

Your wallet signs as the owner (Key A). Lean Key adds the post-quantum key (Key B).

Wallets

Any wallet that supports the Solana Wallet Standard appears under Installed. Lean Key never asks for your seed phrase on this site.