Acryl

A Rust interface to the Acryl blockchain

Usage

```rust extern crate base58; extern crate acryl;

use base58::; use std::time::{SystemTime, UNIX_EPOCH}; use acryl::account::{PrivateKeyAccount, TESTNET}; use acryl::transaction::;

fn main() { let account = PrivateKeyAccount::fromseed("seed"); println!("my address: {}", account.publickey().toaddress(TESTNET).tostring());

let ts = SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_secs() * 1000;
let tx = Transaction::new_alias(&account.public_key(), "rhino", TESTNET, 100000, ts);
println!("id is {}", tx.id().to_string());
let ptx = account.sign_transaction(tx);
println!("proofs are {:?}", ptx.proofs.iter().map(|p| p.to_base58()).collect::<Vec<String>>());

} ```