How qblockq/pqc-bitcoin works
This project is a specialized fork of Bitcoin Core that integrates post‐quantum cryptography (PQC) into the Bitcoin node, wallet, and signing systems to safeguard against future quantum threats. In short, it’s an enhanced blockchain node implementation that not only maintains backward compatibility with classical Bitcoin cryptography but also adds new digital signature schemes and key encapsulation methods (KEMs) as part of a “quantum‐resistant” evolution.
Main Components
• Bitcoin Node Core (“bitcoind”) – the central engine.
• Wallet Subsystem – handles key management, transactions, and hybrid key signing.
• Network & P2P Layer – responsible for block propagation and peer communications.
• Consensus Engine – includes block validation, mempool management, and blockchain ledger storage.
• Crypto Modules – splits into two:
– Classical Cryptography (ECC-based components)
– PQC Modules integrating algorithms from two groups:
▪ Digital Signature Schemes (e.g. SPHINCS+, CRYSTALS-Dilithium, FALCON, SQIsign)
▪ Key Encapsulation Mechanisms (e.g. Kyber, FrodoKEM, NTRU)
• RPC Interface – exposes commands and configuration options (e.g., enabling hybrid modes or PQC algorithm selection).
• Auxiliary Components – such as test frameworks (functional, fuzz, and unit tests), documentation, and build/dependency management (“depends”, “ci”, “doc”).
• How the Bitcoin Node core interacts with the network layer to receive blocks and transactions.
• That the RPC interface and CLI commands control the node’s operation, including enabling/disabling PQC features with parameters (e.g., -pqc=1, -pqcalgo, -pqcsig).
• How the consensus engine uses components from the network layer and interacts with storage (blockchain data, mempool) and error-logging systems.
• Optionally, include the test suite as a parallel component that interacts with core modules for continuous integration, fuzz testing, and functional tests.
Architectural Patterns and Integration Details
• Modular design by grouping code into logical entities (e.g., src/crypto, src/wallet, src/node, src/rpc, etc.).
• That the project maintains backward compatibility while offering “quantum-safe” alternatives; this can be depicted by having two “branches” in the crypto module (traditional vs. PQC).
• Dependency and build management tools (e.g., “depends”, “ci”, “Makefile.am”), which support multiple platforms and are integral to the build process.
Additional Details
• Under “Crypto Modules,” list the PQC algorithms (both Group 1 for digital signatures and Group 2 for key encapsulation) to indicate the breadth of support.
• “Hybrid Key Management System” as a subcomponent under Wallet/Crypto integration.
• Optionally, show the testing ecosystem (unit, functional, fuzz tests) and auxiliary scripts (build automation and linting) that contribute to reliability.
– Clear labels for each major component,
– Annotations on configuration options and integration points (e.g., hybrid keys, PQC algorithm choices).