[pqc]
Documentation

how pqc wallet works

A Solana wallet a quantum computer can't open. Everything about the vaults, the keys, and what happens when you press Swap.

01 · Introduction

What is PQC Wallet

PQC Wallet is a Solana wallet whose funds are controlled by hash-based signatures instead of elliptic curves. You swap, shield, send and unshield like in any wallet. Underneath, every movement out of your vault is authorized by a one-time key that rests on SHA-256 alone.

It has two halves. Your signed-in wallet (Phantom, Solflare, any Solana wallet) pays network fees and signs the outer transactions. Your quantum vault holds the value. The vault never trusts the signed-in wallet's key: an on-chain program releases funds only for a valid hash-based signature.

02 · Introduction

The quantum threat

Every ordinary Solana address is an ed25519 public key. A large enough quantum computer running Shor's algorithm can derive the private key from it. There is no hiding step: unlike a fresh Bitcoin address, the key is exposed the moment the account exists.

Hash functions don't have that weakness. The best known quantum attack on SHA-256 (Grover's algorithm) only square-roots the work, leaving 128-bit security. That is why NIST standardized hash-based signatures (SLH-DSA, XMSS, LMS) as the conservative choice for the post-quantum era.

Data that is public today can be attacked later. Anything sitting in an ed25519 account when a capable machine arrives is exposed, no matter how long ago it was sent.
03 · How it works

One-time signatures

Each vault is guarded by a Winternitz one-time signature (WOTS) key. The secret key is 67 random values. The public key is each value hashed 15 times. To sign, the message digest is split into 64 hex digits plus a 3-digit checksum, and each secret is hashed as many times as its digit.

One of 67 hash chainsdigit = 6
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
secret keysignature = step 6public key = step 15

A verifier finishes each chain to step 15 and checks it matches the public key. Forging means running a hash backwards, which nobody can do, classical or quantum. The checksum stops anyone from pushing digits upward to make a different message.

The catch: one key may sign exactly one message. Two signatures from the same key leak enough to forge a third. PQC Wallet is built around never letting that happen.
04 · How it works

Vault addresses

A vault address is a program-derived address computed from the SHA-256 hash of its WOTS public key. Anyone can send tokens to it like any Solana address. The public key itself stays secret until the first spend, so before that there is nothing at all to attack.

Because a key signs once, a vault is used once. Each spend sends the requested amount out and rolls everything else into your next vault, whose hash is part of the signed message. The old address becomes a tombstone: a tiny account owned by the vault program that points to its successor.

Ordinary walletPQC vault
Controlled byed25519 signatureWOTS hash-based signature
Security rests onElliptic-curve discrete logSHA-256 preimage resistance
Shor's algorithmBreaks itDoesn't apply
Public key exposedAlways (it is the address)Only at the moment of a spend
Key reuseUnlimitedNever: rolls to a fresh key
05 · How it works

Your identity & passphrase

You never manage 67-value keys yourself. When you unlock, your signed-in wallet signs a fixed message (free, not a transaction) and your passphrase is stretched with scrypt. Both feed HKDF to produce your identity seed, and every vault key is derived from it, vault #0, #1, #2 and so on.

The passphrase is what makes this quantum-safe. A quantum attacker who recovers your wallet's ed25519 key can reproduce its signature, but not your passphrase. Without it they can't derive a single vault key.

Your vault opens only with your wallet plus the exact passphrase. Nobody can reset it. A different passphrase opens a different, empty vault, which is why the unlock screen shows a fingerprint (ID) you can recognise.

Nothing secret is stored or sent anywhere. Keys are re-derived in your browser each session and kept only in that tab.

06 · How it works

Anatomy of a spend

Every send, unshield, or swap out of the vault runs the same sequence:

  1. 1
    Record

    Before anything is signed, the exact spend (recipient, token, amount, next vault) is recorded. Retries replay this record, so a key can never sign two different messages.

  2. 2
    Sign

    Your browser signs the spend with the vault's one-time key. The signature is 2,144 bytes.

  3. 3
    Stage

    The signature is written on-chain in three transactions into a temporary buffer, because it's too large for one.

  4. 4
    Verify & withdraw

    Once every byte is visible, the withdraw runs: the program hashes the signature forward, checks it against the vault, and releases the funds.

  5. 5
    Roll forward

    What's left moves to your next vault, other tokens are swept after it, and the old address becomes a tombstone.

If anything is interrupted (a closed tab, an expired blockhash) just run it again. It resumes the same recorded spend from where it stopped.

07 · Using the wallet

Swap

Swaps are routed by Jupiter across every major Solana DEX. Pick where the tokens come from and where they land with the Vault / Wallet toggles.

From → ToWhat happens
Wallet → VaultOne transaction. The output is written straight into your vault's token account; for SOL the guaranteed minimum is forwarded in the same transaction.
Vault → VaultThe vault releases the input to your signed-in wallet with a one-time signature, Jupiter swaps it, and the output lands in your next vault.
Vault → WalletSame, with the output staying in your signed-in wallet.
Wallet → WalletA plain Jupiter swap.

The route panel shows every hop and venue. The quote refreshes every 20 seconds, and your max slippage bounds how far the price can move before the swap reverts.

08 · Using the wallet

Shield, send & unshield

Shield

Moves tokens from your signed-in wallet into your vault. It's a plain transfer, one transaction. You can also share your vault address (or its QR code) to receive from anyone.

Send

Pays any Solana address from your vault, signed by its one-time key. Token accounts for the recipient are created automatically if needed.

Unshield

Moves tokens from your vault back to your signed-in wallet, for when you want to use them elsewhere.

Your vault address changes after every spend. Always copy it fresh from Shield. Anything sent to an old address is detected on your Vault page and can be forwarded with one click.
09 · Using the wallet

Verify

Verify reads Solana directly. Paste a vault address and it follows each tombstone, which only the vault program can write and only after a valid hash-based signature, to the live vault and its balances. No database, no trust in this site.

10 · Security

Security model

What it protects

Funds in your vault against anyone who breaks ed25519, quantum or classical. Releasing them requires a WOTS signature, verified on-chain with SHA-256.

What it doesn't

Tokens in your signed-in wallet are still ordinary ed25519 accounts. During a swap out of the vault, the input sits in that wallet for the few seconds between the withdraw and the swap. Keep long-term holdings in the vault.

Your passphrase is the root of the post-quantum guarantee. A weak or reused passphrase weakens the vault. Use something long and unique.

The program

The vault program is DNsPfPecrbnS7jFqMpEDG3VoWAdkuaU2VxsmaPENcg9F. It is currently upgradeable; you can check its upgrade authority on Solscan.

11 · Security

Costs

ItemAmountNotes
Platform feeNoneOnly Solana network fees
Signature buffer≈0.0122 SOLPaid by your signed-in wallet during a spend, refunded when the withdraw lands
Tombstone rent≈0.00099 SOLStays with each spent vault, permanently
Transactions per spend4 (+1 for tokens)Three signature chunks, one withdraw, one sweep
Token accounts≈0.002 SOL eachOnly when a recipient or vault doesn't have one yet
12 · Reference

Technical specification

ParameterValue
HashSHA-256
WOTSw = 16, n = 32 bytes, 64 message digits + 3 checksum digits = 67 chains
Chain functionF = SHA-256(pubSeed ‖ ADRS ‖ x)
Public keypubSeed ‖ pk₀ … pk₆₆ (2,176 bytes); the vault commits to its SHA-256
Signature2,144 bytes, staged with pubSeed as 2,176 bytes
Vault PDA["vault", 0x01, pkHash]
Spend digestSHA-256 of domain ‖ program ‖ vault ‖ recipient ‖ mint ‖ amount ‖ next vault hash
IdentityHKDF-SHA256(wallet signature ‖ scrypt(passphrase, N=2¹⁶, r=8))
ProgramDNsPfPecrbnS7jFqMpEDG3VoWAdkuaU2VxsmaPENcg9F
13 · Reference

FAQ

Is a quantum computer able to do this today?+

No. But funds sent today sit on a public ledger forever, and the migration has to happen before the machine exists, not after.

Can I use my existing wallet?+

Yes. Sign in with any Solana wallet. It pays fees and is one input to your vault keys; your vault is a separate set of addresses.

What if I forget my passphrase?+

The vault can't be opened. There is no reset, by design: anything that could reset it could also be used by an attacker.

Why does each spend take several transactions?+

A hash-based signature is about 2 KB, larger than one Solana transaction can carry, so it's staged in three pieces and then verified.

Can someone else finish my spend?+

Once staged, the signature is public, but it authorizes only that exact transfer to that exact recipient. Anyone submitting it just completes what you asked for.

Which tokens are supported?+

SOL and any SPL or Token-2022 token, including pump.fun coins.

Ready to move into a vault?

Swap any token straight in, or shield what you already hold.