# Overview
Accounts on BNB Chain are protected by ECDSA on secp256k1. A large enough quantum computer could recover an ECDSA secret from a public key — and that public key is visible as soon as an account has sent one transaction. Hash-based signatures rely only on SHA-256, which is not threatened in the same way.
pqc.bsc uses them where they can make a lasting difference:
- Provenance. Anyone can check that a coin was launched by the wallet it claims, even after ECDSA is broken.
- Identity. You can prove you control a post-quantum identity without using ECDSA for the attestation itself.
- Launch binding. The attestation covers name, ticker, image commitment, creator, leaf index and the real TokenManager2 token address.
Status labels. Built means implemented in this repo and exercised in the live app. Planned means described here but not shipping yet. The code is the source of truth — if docs and code disagree, trust the code.
# How it fits together
wallet personal_sign(derivation message) ← names pqc.bsc + BNB Chain
│ EIP-191 signature (optionally + passphrase later)
▼ HKDF / SHA-256 stretch in the browser
skSeed (secret, stays in the tab) pubSeed (public)
│
▼
Merkle identity: 2^8 = 256 one-time keys
WOTS(w=16, SHA-256) under height-8 tree
public key = (root, pubSeed) · pq address
│
├─ register identity with the pqc.bsc API [built]
├─ four.meme login → upload → TokenManager2.createToken [built]
├─ reserve one WOTS leaf (server ledger, refuse reuse) [built]
├─ sign launch digest over the real TokenCreate address [built]
├─ record attestation; anyone verifies in /prove [built]
├─ Standard / Quantum / War launch modes [built]
├─ buy / sell via Helper3 quotes + TokenManager2 [built]
└─ on-chain XMSS vault that spends only with a hash-based sig [planned]Scheme pin: WOTS(w=16, SHA-256) + Merkle(h=8). Chain: BNB Smart Chain. Launch venue: four.meme TokenManager2 0x5c952063c7fc8610FFDB798152D69F0B9550762b.
# What a launch is
A pqc.bsc launch is one continuous flow in the browser. The coin is created by four.meme; the attestation is ours.
- Unlock identity. Derive the Merkle tree from a wallet
personal_signof the fixed derivation message. Secrets never leave the tab. - four.meme auth + image. Nonce → login signature → access token → image upload to four.meme CDN (SHA-256 of the bytes is also committed in the attestation).
- Signed create payload. Call four.meme
/v1/private/token/createto receivecreateArg+ platform signature for TokenManager2. - On-chain create.
TokenManager2.createToken(createArg, signature)with launch fee (+ optional preSale). Wait for theTokenCreateevent and take the token address from the receipt. - Reserve leaf, then sign. The API hands out the next free WOTS leaf for this identity after the chain success and before any WOTS math. Reuse is refused.
- Attest & record. Sign the canonical launch digest (mint, creator, name, symbol, image hash, leaf, optional scheme). Persist the attestation so /prove can recompute it against public RPC.
Modes: Standard (attestation only), Quantum (quantum-labeled launch posture), War (scheme tagged war in the digest). Trading after launch uses Helper3 quotes and TokenManager2 buy/sell — still four.meme's market mechanics.
# What is built today
| Component | Status | Notes |
|---|---|---|
| Canonical digests (domain-tagged, versioned) | Built | messages.ts |
| Identity derivation from personal_sign | Built | browser-only skSeed |
| WOTS w=16 over SHA-256 (67 chains) | Built | one message per leaf |
| Merkle tree height 8 (256 leaves) | Built | WOTS(w=16, SHA-256) + Merkle(h=8) |
| PQ address + identity registration API | Built | /identity |
| Leaf reservation ledger (refuse reuse) | Built | /api/reserve-leaf |
| four.meme login / upload / create API | Built | client → meme-api |
| TokenManager2.createToken + TokenCreate decode | Built | 0x5c952063c7fc8610FFDB798152D69F0B9550762b |
| Launch attestation record + /prove verifier | Built | browser WOTS check |
| Standard / Quantum / War modes | Built | scheme in digest |
| Helper3 quote + TokenManager2 trade UI | Built | coin page |
| EN / 繁中 UI locale | Built | nav toggle |
| On-chain XMSS vault (spend only with PQ sig) | Planned | not deployed |
| On-chain identity anchor contract | Planned | API registry today |
| Independent security audit | Planned | treat as experimental |
# What it does not protect
Be precise about the limits (details in the threat model):
- Your wallet, the tokens it holds, and ordinary EOAs stay ECDSA-protected. If ECDSA is broken, funds there are at risk whatever pqc.bsc does.
- Only a future on-chain vault would enforce hash-based signatures for spends. Today the attestation is a provenance record, not a lock on the coin's liquidity.
- BNB Chain itself (transaction signatures, validators) uses classical cryptography. pqc.bsc cannot change that.
- four.meme TokenManager2, bonding curves, fees and migration rules are third-party. Their bugs and downtime are yours to evaluate.
- The stack has not been independently audited. Treat everything as experimental.
# Where to go next
- Threat model — who we defend against, and how.
- Parameters — every constant in one table.
- Verify a coin — recompute WOTS + Merkle in your browser.
- Use cases and risk disclosure.
- Launch a coin on four.meme with a PQ attestation.
