Skip to content

hiroshiyoka/nexus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Nexus

A lightweight consensus mechanism built with Rust. Features cryptographic hashing, merkle tree validation, and configurable proof-of-work mining.

Features

  • SHA-256 cryptographic hashing
  • Merkle tree transaction verification
  • Proof-of-work consensus with adjustable difficulty
  • Transaction management system
  • Configurable mining rewards

Requirements

  • Rust 1.70 or higher
  • Cargo

Installation

git clone https://github.com/hiroshiyoka/nexus.git
cd nexus
cargo build --release

Usage

cargo run

Upon running, you will be prompted to:

  1. Enter a miner address
  2. 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

Project Structure

nexus/
├── Cargo.toml
├── src/
│   ├── main.rs      # CLI interface
│   └── chain.rs     # Core implementation
└── README.md

License

MIT

About

Lightweight consensus mechanism in Rust. Explore cryptographic hashing, transaction management, and dynamic difficulty adjustment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages