How alokjaiswal/nitgchain works
NITGChain is a peer-to-peer blockchain node. A client submits transactions through the RPC node, which constructs or decodes transactions, queues them, and broadcasts them to peers. The blockchain engine mines queued transactions into proof-of-work blocks and validates chain data during synchronization. Persistent LevelDB/header storage supports node recovery and key storage, while peer discovery provides optional seed-based network lookup. The README contains no capability detail; this map is based on the sampled runtime modules.
Components 17
Node Services
- RPC Node
src/full_node.py - Transaction Intake
src/full_node.py
Blockchain Core
- Transaction Model
src/Transaction.py - Transaction Pool
src/Blockchain.py - Blockchain Engine
src/Blockchain.py - Proof Mining
src/Blockchain.py - Block Model
src/Block.py - Chain Validator
src/Blockchain.py
Peer Network
- Peer Relay
src/full_node.py - Chain Sync
src/full_node.py - Peer Discovery
src/peer.py
Storage and Crypto
- Chain Database
src/db/chain.py - Node Key Store
src/db/chain.py - Digital Signatures
src/util/digital_signature.py
Other components
- Blockchain Client
- Remote Peer
- Seed Service
Connections 22
- Blockchain Client → RPC Node: submits RPC
- RPC Node → Transaction Intake: dispatches calls
- Transaction Intake → Transaction Model: creates transactions
- Transaction Intake → Transaction Pool: queues transactions
- Transaction Intake → Peer Relay: broadcasts transactions
- Remote Peer → RPC Node: calls RPC
- Peer Relay → Remote Peer: sends transactions
- RPC Node → Chain Sync: starts synchronization
- Chain Sync → Remote Peer: requests chains
- Remote Peer → Chain Sync: returns chains
- Chain Sync → Chain Validator: checks chains
- Chain Sync → Blockchain Engine: replaces chain
- Peer Discovery → Seed Service: requests peers
- Seed Service → Peer Discovery: returns peers
- Blockchain Engine → Proof Mining: mines pending work
- Proof Mining → Block Model: creates blocks
- Proof Mining → Chain Validator: checks proof
- Chain Validator → Block Model: hashes blocks
- Transaction Model → Digital Signatures: verifies signatures
- Transaction Intake → Chain Database: loads metadata
- RPC Node → Blockchain Engine: restores chain
- Node Key Store → Digital Signatures: generates keys