Skip to content

Welcome to Minichain

Welcome to Minichain — a hands-on guide to building a minimal but complete blockchain implementation in Rust.

By the end of this book, you’ll have built:

Building a blockchain from scratch teaches you:

  • Cryptographic fundamentals — hashing, signing, verification
  • Data structures — merkle trees, state tries
  • Virtual machine design — opcodes, gas, execution
  • Systems programming — persistence, serialization, performance
  • Distributed systems concepts — consensus, state machines

This book assumes familiarity with:

  • Rust programming (ownership, traits, error handling)
  • Basic command-line usage
  • Git version control
minichain/
├── crates/
│ ├── core/ # Blockchain primitives
│ ├── vm/ # Virtual machine
│ ├── storage/ # Persistent state
│ ├── consensus/ # PoA logic
│ ├── chain/ # Blockchain orchestration
│ ├── assembler/ # Assembly compiler
│ └── cli/ # Command-line interface
├── contracts/ # Example contracts
└── tests/ # Integration tests

Ready to dive in? Start with the Project Overview to understand the architecture, then jump into Chapter 1: Core Primitives.

You can also explore the full contract example at English Auction Smart Contract.