How mariusjabami/byte works
This repository implements a C proof-of-stake blockchain node and wallet workflow, though the README describes BYTE Chain while sampled runtime output calls it LibreX Chain. The principal workflow is wallet creation or loading, transaction signing and mempool admission, then validator block production and peer broadcast. The graph also preserves documented networking, synchronization, fork resolution, and slashing capabilities. Relationships are limited to sampled calls, source-index references, or README claims; some documented capabilities lack a clearly identifiable implementation path in the available evidence.
Main entry points: consensus.c Stake consensus · p2p.c P2P protocol · main.c Node entry · chain.c Chain storage
Components 15
Wallet and client
- Node entry
src/main.c - Wallet keys
src/wallet.c
Ledger and economics
- Transactions
src/transaction.c - Mempool
src/mempool.c - Chain storage
src/chain.c - Balances
src/balance.c - Tokenomics
src/tokenomics.c - Block structure
src/block.c
Validation and consensus
- Stake consensus
src/consensus.c - Cryptography
src/crypto_utils.c - Slashing
src/consensus.c
Peer network
- P2P protocol
src/p2p.c - Peer gossip
src/gossip.c
Other components
- Wallet user
- Peer nodes
Connections 19
- Wallet user → Node entry: runs commands
src/main.c - Node entry → Wallet keys: loads or creates
src/main.c - Node entry → Transactions: creates
src/main.c - Node entry → Mempool: submits
src/main.c - Node entry → Stake consensus: starts validation
src/main.c - Node entry → P2P protocol: starts networking
src/main.c - Wallet keys → Cryptography: derives keys
src/wallet.c - Stake consensus → Mempool: selects transactions
src/consensus.c - Stake consensus → Chain storage: reads and adds blocks
src/consensus.c - Stake consensus → P2P protocol: broadcasts blocks
src/consensus.c - Stake consensus → Tokenomics: uses rewards
src/consensus.c - Stake consensus → Balances: uses balances
src/consensus.c - Stake consensus → Slashing: detects double-sign
README.md - P2P protocol → Peer nodes: exchanges messages
README.md - P2P protocol → Peer gossip: shares peer lists
src/gossip.c - Peer nodes → P2P protocol: sends blocks
README.md - Peer nodes → P2P protocol: sends transactions
README.md - P2P protocol → Chain storage: requests sync blocks
README.md - Chain storage → Block structure: stores blocks