Complete Full Node Implementation with PoW Consensus, LevelDB Persistence, P2P Networking, and Mempool
OmniNode is a production-grade, complete full node implementation for a blockchain network. It demonstrates:
- 🔗 Blockchain Architecture – Blocks, chain validation, genesis block
- ⛏️ Proof of Work (PoW) Consensus – Mining with adjustable difficulty
- 🌍 P2P Networking – Peer-to-peer communication using libp2p
- 📦 Mempool – Transaction pool with validation and propagation
- 💾 Persistent Storage – LevelDB for blockchain and mempool persistence
- 🔐 Cryptographic Signatures – ECDSA for transaction signing and verification
- 👛 Wallet – Key generation, address creation, transaction signing
- 📡 HTTP API – RESTful interface for external interaction
- 🔄 Block Synchronization – Automatic sync with peers on connection
| Feature | Description |
|---|---|
| Full Node | Complete node with all core components |
| PoW Mining | Adjustable difficulty, nonce search, hash validation |
| P2P Network | libp2p-based peer discovery and messaging |
| Mempool | Transaction pool with validation and gossip propagation |
| LevelDB | Persistent storage for blockchain and mempool |
| ECDSA Signatures | secp256k1 for transaction authentication |
| Wallet | Key pair generation, address derivation, signing |
| Block Sync | Automatic synchronization with peers |
| REST API | Full HTTP interface for node interaction |
- Client sends transaction via HTTP API → Mempool
- Mempool validates and stores transaction → P2P Broadcast
- Miner picks transactions from mempool → PoW Mining
- New Block is created → Blockchain + LevelDB
- Block is broadcast to all peers → Peer Sync
- Node.js (v18.0.0 or higher)
- npm (v9.0.0 or higher)
🛡️ Security Features
✅ ECDSA Signatures – All transactions are cryptographically signed ✅ Replay Attack Protection – Nonce-based transaction ordering ✅ PoW Validation – Each block must meet difficulty target ✅ Chain Validation – Full chain integrity check ✅ Peer Identity – Cryptographic peer IDs (libp2p) ✅ Encrypted Transport – Noise protocol for P2P communication
👨💻 Author Parsa Abolhasani Rad – Senior Blockchain Engineer
🔗 www.linkedin.com/in/parsa-abolhasani-rad-
💻 https://github.com/ParsaAbolhasani
📄 License MIT