Crates.io | blockchain-demo |
lib.rs | blockchain-demo |
version | 0.1.0 |
source | src |
created_at | 2020-09-14 08:12:49.535968 |
updated_at | 2020-09-14 08:12:49.535968 |
description | A simplified blockchain implementation in rust for leaning |
homepage | https://github.com/yunwei37/blockchain-rust |
repository | https://github.com/yunwei37/blockchain-rust |
max_upload_size | |
id | 288517 |
size | 88,958 |
reimplement blockchain_go
in rust, and not only blockchain_go;
a simple blockchain demo for learning
基本原型
commit bd0efe7工作量证明
commit 9d9370a 持久化、命令行、日志
commit e2094c0交易(1)
commit bdbdcec地址和签名
commit 440cba2交易(2)
commit 4912743网络和分布式一致性算法
mastercargo run createwallet
cargo run createblockchain <address>
-m
is specified, the block will be mined immediately in the same node):
cargo run send <from> <to> <amount> -m
cargo run startnode <port>
or start miner node:
cargo run startminer <port> <address>
cargo run getbalance <address>
You can use the RUST_LOG=info
to print the log.
blockchain_go
code: https://github.com/Jeiwan/blockchain_go