How barbosaofilho/bitcoin works
Bitcoin Core is a full node for the Bitcoin network, with optional wallet and graphical interface. The documented primary workflow is peer-to-peer block and transaction download followed by full validation; wallet, RPC, mining, indexes, and cryptographic/script processing are major supporting capabilities. The README supports the high-level workflow, while source excerpts are limited; unverified internal connections are therefore dashed or omitted.
Main entry points: net_processing.cpp Peer networking · chainstate.cpp Chain state · tx_verify.cpp Block validation · block_template_manager.cpp Block construction
Components 19
Peer networking
- Peer networking
src/net_processing.cpp - Network transport
src/net.cpp
Validation and chain
- Block validation
src/consensus/tx_verify.cpp - Consensus rules
src/consensus - Chain state
src/node/chainstate.cpp
Node state
- Block storage
src/node/blockstorage.cpp - UTXO state
src/coins.cpp - Chain indexes
src/index - LevelDB engine
src/leveldb - Transaction mempool
src/kernel
User services
- Wallet
src/wallet - Graphical interface
src/qt/bitcoingui.cpp - RPC service
src/rpc/server.cpp - Block construction
src/node/block_template_manager.cpp
Crypto foundations
- Script processing
src/script/interpreter.cpp - secp256k1 crypto
src/secp256k1 - MuSig signing
src/secp256k1/src/modules/musig/session_impl.h
Other components
- Node operator
- Bitcoin peers
Connections 20
- Node operator → Peer networking: starts node
README.md - Bitcoin peers → Peer networking: send blocks
README.md - Peer networking → Block validation: delivers data
README.md - Block validation → Chain state: updates chain
- Chain state → Block storage: stores blocks
- Chain state → UTXO state: updates outputs
- Chain state → Chain indexes: feeds indexes
- Block storage → LevelDB engine: uses database
- UTXO state → LevelDB engine: uses database
- Peer networking → Network transport: uses transport
- Peer networking → Transaction mempool: handles transactions
- Node operator → Graphical interface: uses interface
README.md - Node operator → RPC service: calls commands
- Graphical interface → Wallet: accesses wallet
- RPC service → Wallet: controls wallet
- Block construction → Transaction mempool: selects transactions
- Block construction → Block validation: checks block
- Block validation → Script processing: checks scripts
- Script processing → secp256k1 crypto: uses signatures
- MuSig signing → secp256k1 crypto: uses primitives
src/secp256k1/src/modules/musig/session_impl.h