What PQR is
PQR is a launch and verification layer for Solana tokens paired against tokenized stocks, SOL and other eligible assets on Raydium LaunchLab. Every PQR launch is meant to carry an attestation signed by the creator's post-quantum identity, so that who launched a token stays provable even if elliptic-curve signatures become forgeable.
PQR is independent. It is not affiliated with StonkFun, Raydium or pqc.market, shares no keys, database or namespaces with them, and its identities are not compatible with any other project's.
Threat model
The adversary is assumed to eventually break Ed25519 (for example with a large quantum computer) but not SHA-256 preimage or second-preimage resistance.
| Asset | Before a break | After a break |
|---|---|---|
| SOL and tokens in ordinary accounts | safe | exposed — PQR does not change this |
| Who launched a token | wallet signature | hash-based attestation still verifies |
| Identity, passphrase hardened | safe | safe, given passphrase entropy |
| Identity, wallet-only | safe | re-derivable by the attacker |
PQR does not replace Solana's signature system. Transactions, token accounts and pools remain protected by Ed25519.
LaunchLab integration
PQR uses Raydium's published launch configurations and curve defaults. Global configuration accounts, quote mint owners and decimals, and the PQR platform's fees and restrictions are verified on Solana mainnet. StonkFun is used only for observed USD prices and market data; its platform accounts and fee-forwarding model are never used for a PQR launch.
All launches use the configured PQR platform. Only supported constant-product configurations with valid defaults are offered; assets restricted to another platform are excluded. The current unrestricted PQR account needs no allow-config or curve-rule accounts. New restrictions block launching until their permissions and rules can be verified. On-chain pool ownership is checked before any token can be listed, including admin-added coins.
Standard launches have no transfer tax. Trading fees and graduation LP shares follow the live PQR platform configuration, not an assumed creator-revenue split. Holder rewards and community distribution remain disabled. A SOL launch transaction passed unsigned mainnet simulation; a real wallet-signed PQR launch has not yet been verified. See status.
Tweakable hash
Every hash in the identity is domain-separated by a 16-byte address so no value can be reused in another position.
F(pk.seed, ADRS, x) = SHA-256(pk.seed ‖ ADRS ‖ x) ADRS = u32(type) ‖ u32(leaf | height) ‖ u32(chain | node) ‖ u32(step) type : 0 chain · 1 leaf public key · 2 tree node · 3 secret-key PRF
Winternitz one-time signatures
Parameters: n = 32 bytes, w = 16, 64 message digits + 3 checksum digits = 67 hash chains of 15 steps.
sk[i][j] = SHA-256(sk.seed ‖ ADRS(3, i, j, 0)) pk[i][j] = F¹⁵(sk[i][j]) chain j of leaf i digest → 64 nibbles d₀…d₆₃ C = Σ (15 − dₖ) ≤ 960 < 16³ → d₆₄ d₆₅ d₆₆ σ[j] = F^dⱼ(sk[i][j]) verify : F^(15−dⱼ)(σ[j]) must equal pk[i][j]
Raising any message digit lowers the checksum, and walking a checksum chain backwards needs a SHA-256 preimage. A leaf is safe for exactly one message; signing two different messages with it leaks enough to forge.
Merkle tree authentication
256 one-time public keys are compressed to leaves and hashed pairwise into a height-8 tree. The 32-byte root, with pk.seed, is the long-term public key. A signature carries the leaf index, the 67 chain values and 8 sibling hashes: 4 + 2,144 + 256 = 2,404 bytes.
leaf[i] = F(pk.seed, ADRS(1, i, 0, 0), pk[i][0] ‖ … ‖ pk[i][66])
node[h][k] = F(pk.seed, ADRS(2, h, k, 0), node[h−1][2k] ‖ node[h−1][2k+1])
PQ address = "pqs1" ‖ base58(SHA-256("pqs/address/v1" ‖ pk.seed ‖ root)[0..20])The construction follows the XMSS family (RFC 8391) but uses PQR's own parameters and address format; it is not an RFC 8391 parameter set.
Identity derivation
No new seed phrase. The wallet signs a fixed message; Ed25519 signatures are deterministic, so the same wallet reproduces the same 64 bytes. A passphrase is stretched with scrypt and mixed in.
σ_wallet = wallet.signMessage(M_derive) 64 B
h_pass = scrypt(passphrase, SHA-256("pqs/identity/v1/salt/" ‖ wallet), N=2¹⁵, r=8, p=1)
IKM = σ_wallet ‖ h_pass h_pass omitted if no passphrase
sk.seed = HKDF-SHA256(IKM, salt="pqs/identity/v1", info="sk:" ‖ wallet)
pk.seed = HKDF-SHA256(IKM, salt="pqs/identity/v1", info="pub:" ‖ wallet)Everything runs in the browser. Seeds are held in page memory only and are gone on reload. A wallet-only identity is weaker: whoever can produce your wallet's signature can derive it. The passphrase-hardened form is the recommended default.
Registration
One statement naming the wallet, PQ address, root and public seed is signed twice: by the wallet (Ed25519) and by leaf 0 (WOTS) over SHA-256("pqs/register/v1\n" ‖ statement). The server stores the public key only after verifying both, and records leaf 0 as spent in the same database transaction.
The public ledger has one row per (identity, leaf) and rejects a second use of a leaf. The server holds no secrets and cannot forge signatures; it could censor or lie about registrations, which is why on-chain anchoring (a Solana memo carrying the root) is planned. Anchoring is not enabled yet.
Launch attestations
A launch attestation signs a digest over the token's public fields, serialised as JSON with keys in sorted order:
d = SHA-256("pqs/launch/v1\n" ‖ canonical_json({
creator, feeMode, launchMode, leaf, metadataHash,
mint, name, network, protocol, quoteMint, symbol }))It binds the creator, mint, metadata hash, quote mint, fee configuration, launch mode, network and protocol version. The attestation is signed in the browser with the next unused one-time key and recorded with the launch; the launch is listed only after its transaction has been read back from Solana.
Signature algorithms
| Scheme | Standard | Assumption | Signature | Public key | In PQR |
|---|---|---|---|---|---|
| WOTS + Merkle | XMSS-style (RFC 8391 family); PQS parameters, not an RFC 8391 parameter set | SHA-256 second-preimage resistance | 2,404 B | 64 B | enabled |
| ML-DSA-65 | FIPS 204 (final) | Module-LWE / Module-SIS | 3,309 B | 1,952 B | enabled |
| ML-DSA-87 | FIPS 204 (final) | Module-LWE / Module-SIS | 4,627 B | 2,592 B | enabled |
| SLH-DSA-SHA2-128s | FIPS 205 (final) | SHA-256 hash security | 7,856 B | 32 B | enabled |
| SLH-DSA-SHAKE-128f | FIPS 205 (final) | SHAKE256 hash security | 17,088 B | 32 B | enabled |
| Falcon-512 | FN-DSA, FIPS 206 not yet final | NTRU / SIS over NTRU lattices | ≤ 666 B | 897 B | enabled |
| Falcon-1024 | FN-DSA, FIPS 206 not yet final | NTRU / SIS over NTRU lattices | ≤ 1,280 B | 1,793 B | enabled |
| Ed25519 + ML-DSA-65 | Composite of RFC 8032 and FIPS 204 (both must verify) | Either discrete log or Module-LWE holds | 3,373 B | 1,984 B | enabled |
Lattice and stateless hash-based schemes come from the audited-in-part, maintained @noble/post-quantum library. They pass size, sign/verify and tamper tests here, but are not offered in the interface until each key is certified by the identity's WOTS root. Falcon's standard (FIPS 206) is not final. PQR itself is not NIST-certified.
Public verification
The verifier recomputes every check in your browser. To reproduce it elsewhere for a registration proof file:
1. rebuild the statement from the proof's fields; it must equal proof.statement
2. "pqs1" ‖ base58(SHA-256("pqs/address/v1" ‖ pubSeed ‖ root)[0..20]) == pqAddress
3. Ed25519.verify(walletSignature, utf8(statement), base58decode(wallet))
4. d = SHA-256("pqs/register/v1\n" ‖ statement); split into 67 base-16 digits
5. for each chain j: apply F (15 − dⱼ) more times to σ[j]
6. hash the 67 results into the leaf, climb 8 siblings → must equal rootEncrypted launches, War Mode, Quantum vault
Encrypted launches. The creator fixes the launch — metadata file, name, ticker, quote asset and fee model — plus a random 32-byte salt, and publishes SHA-256("pqs/seal/v1\n" ‖ canonical JSON) as the commitment, together with the same JSON encrypted under AES-256-GCM. The key is derived from the identity seed and a public salt, so it is never stored. The commitment and a reveal time are signed with a one-time leaf. The server refuses to record the launch before the reveal time, and only if the revealed JSON hashes to the commitment, decrypts from the published ciphertext and equals the launch being signed. The key and plaintext then become public, so anyone can repeat both checks on the token page.
What sealing hides is the content, not the existence: the creator wallet, the identity and the reveal time are public from the start. The image is committed by its hash and must be attached again at launch.
Extra schemes and War Mode. ML-DSA-65/87, SLH-DSA-SHA2-128s, SLH-DSA-SHAKE-128f, Falcon-512/1024 and an Ed25519 + ML-DSA-65 composite can co-sign a launch. Each key is derived from the identity seed with HKDF; the hash of all co-signing public keys is one of the fields the WOTS signature covers, which is the certificate. Each scheme signs "pqs/cosign/v1\n" ‖ scheme ‖ "\n" ‖ launch digest. War Mode requires every one of them, and the server rejects the launch unless all verify. This protects the authenticity of the attestation; it does not change Solana's own signatures or make the blockchain quantum-proof. Falcon (FN-DSA) is not a final standard yet.
Quantum vault: not built. A genuine vault needs a Solana program that verifies the one-time signature on-chain, binds each withdrawal to program, vault, recipient, mint and amount, and rotates to a fresh key. PQR will not present an ordinary account as a vault, so the Quantum and Quantum Rewards launch modes stay unavailable until that program is written and reviewed.
Protocol revenue and rewards
Proposed, not active: of creator revenue actually received by the PQR treasury, 50% $PQR buyback and burn, 20% pool rewards, 20% development and operations, 10% security reserve. It never applies to StonkFun's or independent developers' fees. No revenue has been received and no return is promised.
Security limitations
- Solana itself is not made quantum-resistant; funds in ordinary accounts are outside PQR's protection.
- 256 signatures per identity; rotation is not built.
- One-time key safety depends on never signing twice with a leaf. The ledger enforces it server-side; a compromised server could accept a reuse.
- Registrations are not anchored on-chain yet, so their ordering rests on the PQR database.
- The code has not had an external security audit.
