A decentralized multi-node blockchain project using WebSocket for peer-to-peer communication and Express.js for managing node interactions. Nodes mine blocks using Proof of Work (PoW) and synchronize with peers to maintain the integrity of the blockchain.
MIT License
ChainVerse2 is a decentralized blockchain network that demonstrates peer-to-peer communication and distributed ledger management. This project allows multiple nodes to communicate via WebSockets, mine blocks, and synchronize their chains, ensuring a secure and immutable blockchain.
Clone the repository:
git clone https://github.com/yourusername/multinode-blockchain.git
cd multinode-blockchain
Install dependencies:
npm install
Start a node (specify a port if needed):
node app.js 3000
For each additional node, open a new terminal window and run:
node app.js <port>
The WebSocket server will automatically run on port + 1
(e.g., if you run on port 3000, the WebSocket server will use port 3001).
sender
, receiver
, and amount
).Contributions are welcome! To contribute, open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.