Skip to content

Fan03z/blockchain_rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blockchain_rust

A blockchain based on proof of work implemented in Rust.

If you want to print the log info in terminal: RUST_LOG=info cargo run <Subcommand> [Arguments]

CLI Command:

Currently in development stage,we need add cargo run in each command.

# print chain
cargo run printchain
# reindex unspent-transaction-output set
cargo run reindex
# create wallet
cargo run createwallet
# create blockchain
cargo run createblockchain <address>
# get balance
cargo run getbalance <address>
# list all addresses
cargo run listaddresses
# send amount (if -m is specified, the block will be mined immediately in the same node)
cargo run send <from address> <to address> <amount> -m
# start node server
cargo run startnode <port>
# start mine server
cargo run minernode <port> <address>

Implementation Steps

Basic Prototype

Proof of Work

Persistence and CLI

Transaction_Part1

Addresses

Transaction_Part2

Network (main)

Reference: blockchain_go blockchain-rust

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages