Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RustyChain

RustyChain is a minimal Proof-of-Work (PoW) blockchain project written in Rust.
It demonstrates the basics of decentralized consensus, cryptographic hashing,
and simple peer-to-peer networking using libp2p.


Features

  • Proof-of-Work: Uses SHA-2 hashing for mining with a configurable difficulty target.
  • P2P Networking: Gossips new blocks to peers, ensuring the network converges on a single chain.
  • Longest Chain Rule: If a longer (valid) chain is found, the node will switch to it.

Basic Commands

  • Build the project

    make build
  • Run the project

    make run
  • Lint the code

    make lint
  • Run unit tests

    make unit_test
  • Pre-commit check (lint + unit tests)

    make pre_commit

Roadmap Checklist

  • Implement Block & Blockchain structures
  • Implement static difficulty mining (PoW)
  • Add basic networking with libp2p
  • Automate difficulty adjustment
  • Expand test coverage (integration tests, property-based tests)
  • Set up a continuous integration (CI) pipeline

License

RustyChain is distributed under the MIT License.

About

A minimal proof-of-work blockchain written in Rust 🦀

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages