pqbit – TypeScript toolkit simulating Bitcoin’s post‑quantum migration. Implements BIP‑360 (P2MR, bc1z addresses) and BIP‑361 hybrid signatures (secp256k1 + ML‑DSA‑44) with optional ML‑KEM‑768. Includes mock node validator, TapTree builder, wallet migration lab, and official BIP test vectors – offline, not mainnet consensus.
pqbit is a TypeScript developer toolkit that simulates Bitcoin's future migration to post-quantum safe cryptography. It allows developers and researchers to safely experiment with quantum-resistant Bitcoin addresses (starting with 'bc1z...'), dual signatures combining classical and quantum-safe methods, wallet migration simulations, and policy timeline explorations—all without touching real Bitcoin networks. The toolkit implements concepts from Bitcoin improvement proposals BIP-360 and BIP-361, using established cryptographic libraries for educational and research purposes.
How It Works
You've read that future quantum computers could potentially break today's Bitcoin security, and you want to understand what the solution might look like.
You discover pqbit, a safe playground where you can explore post-quantum Bitcoin ideas without touching real money or real networks.
With one simple command, you create a pair of keys that work together—one classical and one designed to resist quantum attacks.
Your keys generate a special 'bc1z...' address that uses a newer, more flexible Bitcoin address format designed for post-quantum migration.
Create dual signatures that combine both classical and quantum-safe methods, then verify they work correctly.
See how an older wallet might gradually move its funds to quantum-safe addresses over time.
Imagine what Bitcoin policy might look like in 2030 or 2035 as the quantum migration unfolds.
You experiment with combining quantum-safe encryption with dual signatures in a complete round-trip demonstration.
Through hands-on experimentation, you've gained practical insight into how Bitcoin might safely evolve to resist quantum computers—all in a completely safe, offline environment.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.