On this page
Overview
QLab (quantivist.io) is a token launchpad on BNB Chain where every launch carries a post-quantum signature proving who launched it. A launch is one transaction: it deploys the token, opens its PancakeSwap Infinity pool at a fixed opening market cap, puts the whole supply in as liquidity and locks that liquidity for good. QLab also has an on-chain vault that releases funds only for a hash-based signature it checks itself.
Accounts on BNB Chain are protected by ECDSA signatures on the secp256k1 curve. A large enough quantum computer could recover an ECDSA secret key from its public key, and the public key of an account is visible as soon as it has sent one transaction. Hash-based signatures rely only on SHA-256, which is not threatened in the same way. QLab uses them where they can make a lasting difference:
- Provenance. Anyone, at any time, can check that a coin was launched by the wallet it claims, even after ECDSA is broken.
- Vault. Funds in the Quantum vault can only be moved by a hash-based signature that the vault contract verifies on-chain.
- Identity. You can prove you control your post-quantum identity without using ECDSA at all.
Status labels. This documentation describes the full protocol. Built means implemented and tested in the QLab source (
backend/packages,backend/services, the Solidity contracts); cryptographic constants and formats are also pinned by known-answer vectors (backend/vectors/pq-crypto.json,protocol.json,vault.json), which the Solidity tests replay too. Parts that are not built yet are marked planned. The code is the source of truth.
How it fits together#
wallet personal_sign(derivation message) ← names qlab and the chain id
│ r ‖ s of the signature (+ optional passphrase → Argon2id)
▼ HKDF-SHA256
skSeed (secret, stays in the browser) pubSeed (public, no passphrase input)
│
▼
Hypertree identity: 256 × 256 = 65,536 one-time keys (WOTS, w = 16, SHA-256)
public key = (root, pubSeed) · address pq1…
│
├─ anchor: the wallet records the root in the QuantumAnchor contract [built]
├─ launch attestation: one signature per coin, pinned in IPFS metadata [built]
├─ war mode: three more signatures from other algorithm families [built]
├─ scheme certificates: ML-DSA, SLH-DSA, Falcon, IETF composite hybrid [built]
├─ proof-of-possession login [built]
├─ derived wallets, attached only with a PQ signature [built]
└─ XMSS vault: stable address, 256 spends, verified on-chain in one call [built]What a launch is#
QuantumFactory.launch does all of this in one transaction:
- deploys the token at an address fixed in advance (CREATE2). The salt comes from the one-time key that signs the launch, so the address is known before the launch and is what the attestation signs;
- opens a PancakeSwap Infinity concentrated-liquidity pool at the opening market cap of the chosen launch config, priced in the quote asset (BNB or an accepted ERC-20);
- places the whole supply as one-sided liquidity from the opening price upward, and locks the position in
QuantumLocker, which has no function that removes liquidity; - optionally fills the creator's first buy. In a Quantum or war launch the pool pays that buy straight to the creator's vault.
The token trades in that pool from the first block. It has 18 decimals, a fixed supply, no owner, no mint function, no transfer tax and no pause. The creator chooses the pool's swap fee (a launch config), an optional anti-snipe window, and whether part of the creator's fees is streamed to the token's holders. All of it is covered by the launch signature (spec §13).
What is built today#
| Component | Status | Where |
|---|---|---|
| Canonical message encoding (length-prefixed, type-tagged, bound to the chain id) | Built | pq-crypto/src/encoding.ts |
| Identity derivation (derivation message, HKDF, Argon2id, child seeds, passphrase meter) | Built | pq-crypto/src/kdf.ts |
| Wallet determinism check (sign twice, refuse if the signatures differ); smart-contract wallets refused | Built | web app, identity setup |
| WOTS one-time signatures (w = 16, SHA-256) | Built | pq-crypto/src/wots.ts |
| XMSS trees (height 8) and the 2-layer hypertree (65,536 signatures, 4,804-byte signatures) | Built | pq-crypto/src/xmss.ts, hypertree.ts |
pq1… address | Built | pq-crypto/src/address.ts |
| Message schemas for every signed message (register, rotate, bind, launch, proof, wallet-attach, wallet-rotate, transfer, vault-register, vault-spend) | Built | protocol/src/messages.ts |
Launch attestation format (qlab metadata block), war-mode armor plates and verifyLaunchAttestation with a step trace | Built | protocol/src/attestation.ts, verify.ts |
IdentitySession: the only API that produces identity signatures | Built | protocol/src/session.ts |
| Many-time schemes: ML-DSA-65/87, SLH-DSA-128s/128f, Falcon-512/1024, IETF composite ML-DSA-65 + Ed25519 (draft-19) | Built | packages/schemes |
| One-time-key ledger (reuse refusal, monotonic allocation, cached retries), browser store in IndexedDB under a Web Lock | Built | pq-crypto/src/ledger.ts, web app |
| Known-answer vectors, replayed by the TypeScript and the Solidity tests | Built | backend/vectors/ |
| Anchor contract: first identity of a wallet kept as its origin for good, later ones recorded | Built | QuantumAnchor.sol |
| Vault contracts: one clone per vault key at a CREATE2 address, on-chain XMSS verification, monotonic leaf counter; no owner, no upgrade path | Built | QuantumVaultFactory.sol, QuantumVault.sol, XMSS.sol, QuantumDigest.sol |
| Vault client with pre-flight checks, a persisted spend plan, one-transaction execute and cancel | Built | packages/vault-client |
| Launchpad contracts on PancakeSwap Infinity: factory, locker, anti-snipe hook, router, quote pricer, token and reward token | Built | contracts/src |
| Transaction builders and the browser-side check of every prepared transaction request | Built | packages/txbuild, @app/txbuild/verify |
| Data model with invariants in SQL (identities, leaf ledger, launches, sealed launches, vaults, transfers…) | Built | backend/packages/db/prisma |
| Registration + on-chain anchor flow (identity active only after the anchor is confirmed) | Built | services/api-gateway (identities) |
| Sign-In with Ethereum (EIP-4361) and post-quantum proof-of-possession login | Built | services/api-gateway (auth) |
| Launch pipeline: prepare/submit with an exact-request check, decoded call list, first buy, Quantum delivery into the vault | Built | packages/txbuild, services/api-gateway (launches) |
| Sealed launches: an encrypted announcement that later opens to exactly the launched coin | Built | api-contract/src/seal.ts, services/api-gateway |
Standalone verifier: package, qlab-verify CLI and a single-file verify.html | Built | packages/verifier |
Indexer (eth_getLogs), worker (attestation checks, fee collection), REST API, WebSocket, rate limits | Built | services/indexer, services/worker, services/api-gateway |
| Derived wallets, wallet attach, transfers and wallet rotation | Built | services/api-gateway (wallets, transfers) |
| Identity rotation: the old identity certifies its successor; launch attestations carry the rotation chain and verifiers check it | Built | services/api-gateway (identities), protocol/src/verify.ts |
| Public deployment on BNB Chain: contract addresses are set at deployment, then pinned in the web build and in the verifier | Planned | contracts/deployments/<chain id>.json |
| Independent audit of the contracts | Planned |
What it does not protect#
Be precise about the limits (details in the threat model):
- Your wallet, the tokens it holds and the fees you can claim from the locker stay ECDSA-protected. If ECDSA is broken, funds held there are at risk whatever QLab does.
- Identity-derived wallets are ordinary secp256k1 accounts. Their transfers carry a post-quantum attestation, which is a record, not an on-chain lock.
- Only the vault enforces hash-based signatures on-chain.
- The chain itself (transaction signatures, validator signatures) uses classical cryptography. QLab cannot change that.
- The contracts have not been audited yet. The vault and the anchor contract have no owner and cannot be upgraded, so a flaw in them could not be patched in place either.
Where to go next#
- Threat model: who we defend against, and how.
- Protocol specification: every byte.
- Parameters: every constant in one table.
- Verify it yourself: runnable code, no dependencies.
- FAQ and glossary.
