Move to blake2b, start adding validate_block fn
This commit is contained in:
parent
6c8c4d9b1e
commit
718b9ed7de
@ -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;
|
||||
|
@ -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;
|
||||
|
4
lighthouse/state/transition/validate_block.rs
Normal file
4
lighthouse/state/transition/validate_block.rs
Normal file
@ -0,0 +1,4 @@
|
||||
enum BlockStatus {
|
||||
NewBlock,
|
||||
KnownBlock,
|
||||
}
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user