rust-blockchain-0.1.0 is not a library.
Rust-Blockchain
Blockchain Cryptocurrency model Implemented in Rust.
To get started
git clone https://github.com/j0fiN/rust-blockchain
cd rust-blockchain
cargo run
Your terminal should output this after execution.
[
To develop it as an add-on to your application
Code(main.rs) | Doc |
---|---|
chain::Chain::new() |
Builds the blockchain with genesis block append by default. |
wallet::Wallet::new() |
builds the node with digital signature components. |
satoshi.create_transaction(1200., notildore.pub_key) |
Builds the transaction object and signs it and returns back trnsaction, signature and nonce. |
notildore.verify_and_add(transaction, satoshi.pub_key, sig, nonce, true, &mut blockchain) |
transaction verification is done along with block append |
Testing
Future updates
Conclusion
Do contribute is you want to make it better or :star: the repo if you like it!