A lightweight consensus mechanism built with Rust. Features cryptographic hashing, merkle tree validation, and configurable proof-of-work mining.
- SHA-256 cryptographic hashing
- Merkle tree transaction verification
- Proof-of-work consensus with adjustable difficulty
- Transaction management system
- Configurable mining rewards
- Rust 1.70 or higher
- Cargo
git clone https://github.com/hiroshiyoka/nexus.git
cd nexus
cargo build --releasecargo runUpon running, you will be prompted to:
- Enter a miner address
- Set the mining difficulty
Then you can interact with the menu:
- 1 - Create a new transaction
- 2 - Mine a new block
- 3 - Change difficulty
- 4 - Change reward
- 0 - Exit
nexus/
├── Cargo.toml
├── src/
│ ├── main.rs # CLI interface
│ └── chain.rs # Core implementation
└── README.md
MIT