Move to blake2b, start adding validate_block fn

This commit is contained in:
Paul Hauner 2018-09-19 14:46:58 +10:00
parent 6c8c4d9b1e
commit 718b9ed7de
5 changed files with 14 additions and 3 deletions

View File

@ -1,10 +1,11 @@
extern crate rlp;
extern crate ethereum_types;
extern crate blake2;
extern crate blake2_rfc as blake2;
extern crate bytes;
extern crate ssz;
use super::utils;
use super::db;
pub mod active_state;
pub mod attestation_record;

View File

@ -1,7 +1,13 @@
use super::super::utils::types::Hash256;
use super::crystallized_state;
use super::super::db;
use super::ssz;
use super::blake2;
use super::utils;
mod attestation_parent_hashes;
mod shuffling;
mod validate_block;
pub use self::attestation_parent_hashes::attestation_parent_hashes;
pub use self::shuffling::shuffle;

View File

@ -0,0 +1,4 @@
enum BlockStatus {
NewBlock,
KnownBlock,
}

View File

@ -1,8 +1,9 @@
extern crate ethereum_types;
extern crate blake2;
extern crate blake2_rfc as blake2;
extern crate crypto_mac;
extern crate boolean_bitfield;
pub mod hash;
pub mod types;
pub mod bls;
pub mod test_helpers;

View File

@ -3,7 +3,6 @@ extern crate boolean_bitfield;
use super::ethereum_types::{ H256, H160 };
use self::boolean_bitfield::BooleanBitfield;
pub use super::blake2::Blake2s;
pub use super::ethereum_types::U256;
pub type Hash256 = H256;