Stack overview
Bitcoin Commons is a Bitcoin implementation ecosystem built as a six-layer technology stack on the Orange Paper.
“Layer” here means stack position, not governance repository layers or PR tiers. blvm-consensus and blvm-protocol share blvm-primitives for types, serialization, and crypto.
The stack implements consensus from the spec, abstracts protocol variants, ships a reference full node, SDK, and governance enforcement tooling.
Six-layer stack (architecture)
graph TB
L1[Orange Paper
Mathematical Foundation] L2[blvm-consensus
Pure Math Implementation] L3[blvm-protocol
Protocol Abstraction] L4[blvm-node
Full Node Implementation] L5[blvm-sdk
Developer Toolkit] L6[blvm-commons
Governance Enforcement] L1 -->|direct implementation| L2 L2 -->|protocol abstraction| L3 L3 -->|full node| L4 L4 -->|ergonomic API| L5 L5 -->|cryptographic governance| L6
Mathematical Foundation] L2[blvm-consensus
Pure Math Implementation] L3[blvm-protocol
Protocol Abstraction] L4[blvm-node
Full Node Implementation] L5[blvm-sdk
Developer Toolkit] L6[blvm-commons
Governance Enforcement] L1 -->|direct implementation| L2 L2 -->|protocol abstraction| L3 L3 -->|full node| L4 L4 -->|ergonomic API| L5 L5 -->|cryptographic governance| L6
Component Overview
Stack layer 1: Orange Paper (Mathematical Foundation)
- Mathematical specifications for Bitcoin consensus rules
- Source of truth for all implementations
- Timeless, immutable consensus rules
Stack layer 2: blvm-consensus (Pure Math Implementation)
- Direct implementation of Orange Paper functions
- Formal proofs verify mathematical correctness
- Side-effect-free, deterministic functions
- Consensus-critical dependencies and transitive pins follow
Cargo.toml(BLVM crates use published ranges; many third-party crates use=where pinned)
Stack layer 3: blvm-protocol (Protocol Abstraction)
- Bitcoin protocol abstraction for multiple variants
- Supports mainnet, testnet, regtest
- Commons-specific protocol extensions (UTXO commitments, ban list sharing)
- BIP implementations (BIP152, BIP157, BIP158, BIP173/350/351)
Stack layer 4: blvm-node (Node Implementation)
- Reference full node: non-consensus storage, P2P, RPC, and module system
- Multi-transport networking and operational hardening for real deployments
- Component detail, lifecycle, and features: Node overview
Stack layer 5: blvm-sdk (Developer Toolkit)
- Governance primitives (key management, signatures, multisig)
- CLI tools (blvm-keygen, blvm-sign, blvm-verify)
- Composition framework (declarative node composition)
- Bitcoin-compatible signing standards
Stack layer 6: blvm-commons (Governance Enforcement)
- GitHub App for governance enforcement
- Cryptographic signature verification
- Multisig threshold enforcement
- Audit trail management
- OpenTimestamps integration
Data Flow
Runtime data flow and crate dependencies: Component Relationships.
Cross-Layer Validation
Dependency rules, crate-graph boundaries, and version coordination: Component Relationships.
Key Features
Mathematical Rigor
- Direct implementation of Orange Paper specifications
- Formal verification with BLVM Specification Lock
- Property-based testing for mathematical invariants
- Formal proofs verify critical consensus functions
Protocol Abstraction
- Multiple Bitcoin variants (mainnet, testnet, regtest)
- Commons-specific protocol extensions
- BIP implementations (BIP152, BIP157, BIP158)
- Protocol evolution support
Node and operational features
- Full Bitcoin node-style functionality when configured and secured appropriately
- Details: Node overview, performance, storage backends, transport abstraction
Governance Infrastructure
- Cryptographic governance primitives
- Multisig threshold enforcement
- Transparent audit trails
- Forkable governance rules
Source repositories
| Stack layer | Crate | Repository |
|---|---|---|
| 2 | blvm-consensus | BTCDecoded/blvm-consensus |
| 3 | blvm-protocol | BTCDecoded/blvm-protocol |
| 4 | blvm-node | BTCDecoded/blvm-node |
| 5 | blvm-sdk | BTCDecoded/blvm-sdk |
| 6 | blvm-commons | BTCDecoded/blvm-commons |
| Umbrella binary | blvm | BTCDecoded/blvm |
See Also
- Crate dependencies - Dependency graph and governance layers by crate
- Design Philosophy - Core design principles
- Module System - Module system architecture
- Node Overview - Node implementation details
- Consensus Overview - Consensus layer details
- Protocol Overview - Protocol layer details