Add signature module

Because things other than transactions can be signed.
This commit is contained in:
Greg Fitzgerald
2018-03-06 12:48:26 -07:00
parent 5d0356f74b
commit 624c151ca2
14 changed files with 54 additions and 41 deletions

View File

@@ -1,7 +1,8 @@
//! A library for generating the chain's genesis block.
use event::Event;
use transaction::{generate_keypair, get_pubkey, sign_transaction_data, PublicKey, Transaction};
use transaction::{sign_transaction_data, Transaction};
use signature::{generate_keypair, get_pubkey, PublicKey};
use log::{create_entries, hash, Entry, Sha256Hash};
use ring::rand::SystemRandom;
use ring::signature::Ed25519KeyPair;