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 ``` use std::env;
use rsblockchain::rustblockchain::blockchain::Blockchain;
fn main() {
let args: Vec
println!("{}", rs_blockchain::VERSION_INFO);
test.init();
if args.len() >= 2 {
let mut collected_args: String = String::new();
for arg in args[..].iter() {
collected_args.push_str(arg);
}
let amount: u32 = rs_blockchain::remove_non_digits(&collected_args);
for i in 1..=amount {
test.add_transaction("Jane Doe", "John Doe", i as f32);
test.mine();
}
} else {
for i in 1..=25 {
test.add_transaction("Jane Doe", "John Doe", i as f32);
test.mine();
}
}
}
```
Of course, anyone can!