Blockchain crate for the Rust programming language.
It's API is still very unstable and should not be taken for granted.
Here's an example to get started ```rust use std::env;
use rsblockchain::rustblockchain::blockchain::Blockchain; use rsblockchain::rustblockchain::*;
fn main() {
let args: Vec
test.init();
if args.len() >= 2 {
let amount: u32 = remove_non_digits(&args[1]);
for i in 1..=amount {
test.add_transaction(format!("Transaction {}", i));
test.mine();
}
} else {
for i in 1..=25 {
test.add_transaction(format!("Transaction {}", i));
test.mine();
}
}
} ```
Of course, anyone can!