Generate log from Genesis

This commit is contained in:
Greg Fitzgerald
2018-03-05 13:03:56 -07:00
parent 48c28c2267
commit 298989c4b9
2 changed files with 7 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
//! A library for generating the chain's genesis block.
use event::{generate_keypair, get_pubkey, sign_transaction_data, Event, PublicKey};
use log::{hash, Sha256Hash};
use log::{create_entries, hash, Entry, Sha256Hash};
use ring::rand::SystemRandom;
use ring::signature::Ed25519KeyPair;
use untrusted::Input;
@@ -77,6 +77,10 @@ impl Genesis {
events
}
pub fn create_entries(&self) -> Vec<Entry<u64>> {
create_entries(&self.get_seed(), self.create_events())
}
}
#[cfg(test)]