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

@@ -4,7 +4,8 @@
use log::{Entry, Sha256Hash};
use event::Event;
use transaction::{get_pubkey, sign_transaction_data, PublicKey, Signature, Transaction};
use transaction::{sign_transaction_data, Transaction};
use signature::{get_pubkey, PublicKey, Signature};
use genesis::Genesis;
use historian::{reserve_signature, Historian};
use ring::signature::Ed25519KeyPair;
@@ -157,7 +158,7 @@ impl Accountant {
#[cfg(test)]
mod tests {
use super::*;
use transaction::{generate_keypair, get_pubkey};
use signature::{generate_keypair, get_pubkey};
use logger::ExitReason;
use genesis::Creator;