- Mining of genesis block
- Proof of work based on finding hash that fulfills requirements < 1 << (256b - 24b)
- Transactions between addresses (strings as of now)
- Persistance of transactions in the file byte based key value store
- Generation of real bitcoin addresses
- Cli
cargo build --release
mv target/release/rust-chain .
./rust-chain --create-blockchain <address to transfer coins from mining genesis block>
- creates blockchain and saves db to file./rust-chain --print
- prints to stdout all transactions made in blockchain./rust-chain --send <address from> <address to> <value>
- sends coins from address to another./rust-chain --balance <address>
- check balance on given address./rust-chain --remove-blocks
- removes whole blockchain./rust-chain --address
- generates real unique bitcoin address