blockchain_go in rust: A simplified blockchain implementation in rust for leaning / 用 rust 从零开始构建区块链(Bitcoin)
Last updated Apr 30, 2026
169
Stars
33
Forks
0
Issues
0
Stars/day
Attention Score
55
Language breakdown
Rust 100.0%
▸ Files
click to expand
README
blockchain-rust - 用 rust 从零开始构建区块链(Bitcoin)系列
reimplement blockchaingo in rust, and not only blockchaingo;
a simple blockchain demo for learning
the code for each article
- part1: Basic Prototype
基本原型commit bd0efe7 - part2: Proof-of-Work
工作量证明commit 9d9370a - part3: Persistence and CLI
持久化、命令行、日志commit e2094c0 - part4: Transactions 1
交易(1)commit bdbdcec - part5: Addresses
地址和签名commit 440cba2 - part6: Transactions 2
交易(2)commit 4912743 - part7: Network
网络和分布式一致性算法master
Chinese Documents
- 基本原型和工作量证明算法: part1.md
usage
- Create wallet:
cargo run createwallet
- Create blockchain:
cargo run createblockchain <address>
- send coins (if
-mis specified, the block will be mined immediately in the same node):
cargo run send <from> <to> <amount> -m
- start server:
cargo run startnode <port>
or start miner node:
cargo run startminer <port> <address>
- get balance:
cargo run getbalance <address>
You can use the RUST_LOG=info to print the log.
reference
blockchaingocode: https://github.com/Jeiwan/blockchaingo- Build a cryptocurrency! - Blockchain in Rust: https://github.com/GeekLaunch/blockchain-rust
- 中文版文档:https://liuchengxu.gitbook.io/blockchain/
🔗 More in this category