Skip to content

Rust Blockchain From Scratch is a minimalist, modular blockchain runtime implemented in Rust, built to demystify the foundational mechanics of blockchain systems through a clean and extensible architecture. Inspired by Substrate, it focuses on the core primitives that define a blockchain runtime — including balances, system state, extrinsics, and p

Notifications You must be signed in to change notification settings

kingsudo1004/Rust_Blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦀 Rust Blockchain From Scratch

A minimalist blockchain runtime written in Rust, designed to explore core blockchain concepts like balances, system state, extrinsics, and proof-of-existence claims. Inspired by Substrate’s architecture.


🚀 Features

  • ✅ Generic runtime using traits and macros
  • ✅ Balance pallet with safe arithmetic and transfer logic
  • ✅ System pallet with block number and nonce tracking
  • ✅ Proof-of-Existence pallet (claim & revoke)
  • ✅ Block execution with extrinsics
  • ✅ Macro-based dispatch system: #[call], #[runtime]

📁 Project Structure

src/ ├── balances.rs ├── system.rs ├── proof_of_existence.rs ├── main.rs ├── support.rs ├── types.rs ├── macros/ │ ├── call.rs │ └── runtime.rs


🛠️ Build Instructions

Ensure you have Rust and Cargo installed:

rustup update
cargo --version

📦 Install dependencies & compile:
```bash
cargo build

▶️ Run the project:
bash
cargo test

About

Rust Blockchain From Scratch is a minimalist, modular blockchain runtime implemented in Rust, built to demystify the foundational mechanics of blockchain systems through a clean and extensible architecture. Inspired by Substrate, it focuses on the core primitives that define a blockchain runtime — including balances, system state, extrinsics, and p

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published