← Launch Site WASM Wallet Live Explorer
PQChain Protocol v4.0 (Testnet, Unaudited) · Technical Whitepaper & Tokenomics

PQChain: A Crypto-Agile, Post-Quantum UTXO Blockchain

NIST FIPS 204 (ML-DSA-65), NIST FIPS 205 (SLH-DSA / SPHINCS+), Authenticated NIST FIPS 203 (ML-KEM-768) P2P, 256-Bit Compact-Target PoW, Historical Witness Pruning, SHA3-256 SPV Proofs, and the Hardened PQScript VM.

1. Abstract

Existing public blockchains depend on elliptic-curve cryptography (ECDSA / Ed25519) and classical Diffie-Hellman key exchange—primitives broken in polynomial time by Shor's algorithm on a cryptographically relevant quantum computer (CRQC). PQChain is a clean-slate Layer-1 UTXO Proof-of-Work blockchain written in pure safe Rust (zero unsafe core cryptographic code, zero C dependencies) that eliminates classical public-key assumptions across every layer while mitigating single-family cryptanalytic risk via native cryptographic agility.

Protocol v4 freezes the normative consensus ruleset for public testnet and independent security audit (docs/CONSENSUS-SPEC.md and docs/THREAT-MODEL.md), verified by 31/31 automated integration tests covering consensus, MITM-resistant P2P, ACID storage, PQScript VM bounds, encrypted wallets, and Rosetta v1.4.13 reconciliation.

2. Post-Quantum Cryptographic Architecture

VersionIdentifierNIST StandardHardness FamilyPK / Sig SizeRole
0x01ml-dsa-65FIPS 204Module-Lattice (MLWE/MSIS)1,952 B / 3,309 BFast everyday transactions
0x02slh-dsa-128fFIPS 205Stateless Hash-Based (SHAKE256)32 B / 17,088 BFast zero-lattice fallback
0x03slh-dsa-128sFIPS 205Stateless Hash-Based (SHAKE256)32 B / 7,856 BCompact cold-storage vaults
0x04pq-scriptPQChain v4Deterministic Stack VM32 B Hash + WitnessCross-family multisig, CLTV, HTLC
address_payload = [ scheme_version (1B) || SHA3-256(domain || scheme || key_or_script) (32B) ]
address         = Bech32m("pq", address_payload)   # canonical lowercase round-trip enforced
BIP-143/341-Style Sighash v3 & Anti-Downgrade Invariant: Every transaction sighash (PQCHAIN_TX_SIGHASH_V3, signed under context pqchain-tx-sig-v3) commits to all input outpoints and schemes, every spent UTXO's exact (amount, scheme, recipient_hash), all outputs, lock_time, and input_index. Consensus strictly enforces input.scheme == utxo.output.scheme, eliminating fee-manipulation attacks on offline/hardware signers and preventing cross-scheme downgrade or key-substitution attacks.

3. Protocol v4 Consensus & Block Structure

Protocol v4 enforces 17 normative consensus rules (C-01–C-17) over a canonical 128-byte block header hashed with domain-separated BLAKE3-256 (PQCHAIN_POW_HEADER_V4):

header_bytes = version (u32 LE) || height (u64 LE) || prev_hash (32B) || merkle_root (32B)
            || witness_root (32B) || timestamp (u64 LE) || compact_target (u32 LE) || nonce (u64 LE)

4. Witness Separation, Pruning & SPV Light Clients

Because post-quantum signatures range from 3.3 KB to 17.1 KB, PQChain splits every transaction into a non-witness txid (PQCHAIN_TXID_V2, committed in header.merkle_root) and a witness-inclusive wtxid (PQCHAIN_WTXID_V2, committed in header.witness_root).

5. PQScript Deterministic Smart Contract VM

PQScript is a non-Turing-complete stack VM bounded by strict deterministic limits: 128 stack items, 20,000 B max stack/witness item size, 256 opcodes, 64 KiB max canonical script size, and an explicit per-opcode execution cost cap of 10,000 cost units (with signature verification weighted by cryptographic cost: ML-DSA-65 = 100, SLH-DSA-128s = 500, SLH-DSA-128f = 1,500). Protocol v4 enforces strict clean-stack (final stack must equal [[0x01]]), minimal integer encoding, and MINIMALIF boolean semantics.

6. Authenticated P2P Networking, Storage & Sync

7. Measured Release Benchmarks

AlgorithmPK / EKSig / CTKeyGenSign / KEXVerify
ML-DSA-65 (FIPS 204)1,952 B3,309 B0.343 ms0.759 ms0.122 ms
SLH-DSA-SHAKE-128f (FIPS 205)32 B17,088 B2.841 ms67.094 ms4.144 ms
SLH-DSA-SHAKE-128s (FIPS 205)32 B7,856 B185.56 ms1,482.10 ms1.188 ms
ML-KEM-768 P2P KEX (FIPS 203)1,184 B1,088 B—0.151 msForward-Secret + ML-DSA Auth
BLAKE3-256 PoW (Single Thread)32 B Digest5,606,575 H/s

8. Tokenomics & Monetary Policy (PQC)

ParameterSpecification
Hard Supply Cap21,000,000 PQC (1 PQC = 100,000,000 quanta)
Initial Block Subsidy50 PQC per block, halving every 210,000 blocks (~4 years at 10-min mainnet target)
Premine0% hidden premine
Coinbase Maturity100 blocks before coinbase rewards become spendable
Optional Protocol TreasuryGenesis-committed 90% Miner / 10% on-chain PQScript 2-of-3 Multisig + CLTV Treasury during Epochs 0–1 (hard-capped at 25% in consensus, sunsets automatically at height 420,000; fees remain 100% miner-only), or 0% pure PoW.
Fee MarketSegWit-style 4x base / 1x witness discount (4M WU block limit, 1,000 quanta/kWU min relay fee) so prunable SLH-DSA signatures remain affordable.

9. Audit & Mainnet Launch Path

  1. Public Multi-Region Testnet: Dockerized seed nodes with authenticated P2P, rate-limited faucet, live explorer, and 292 KB BIP-39/HTLC WASM browser wallet.
  2. Independent Security Audit: Formal third-party review of the frozen Protocol v4 specification (docs/CONSENSUS-SPEC.md), threat model (docs/THREAT-MODEL.md), FIPS 203/204/205 integration, PQScript VM, fuzz harnesses, and P2P DoS resistance.
  3. DEX Bridge Bootstrapping: 1:1 HTLC/multisig wrapped wPQC pools on Base/Ethereum/Solana DEXs for immediate price discovery and CoinGecko/CMC tracking.
  4. Native L1 Exchange & Hardware Wallet Listings: Rosetta/Mesh v1.4.13 deposit/withdrawal APIs (with historical balance reconciliation) and BIP-143/341-style v3 sighash offline signing for Tier-2 and Tier-1 CEXs.