1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
extern crate bigint;
extern crate rlp;
extern crate bloom;
extern crate secp256k1;
extern crate sha3;
extern crate blockchain;
extern crate trie;
extern crate trie_memory;
extern crate block_core;
#[cfg(test)] extern crate hexutil;
#[cfg(test)] extern crate rand;

mod header;
mod transaction;
mod block;
mod receipt;
mod address;

pub use block_core::*;
pub use transaction::*;
pub use header::{TotalHeader, Header, HeaderHash};
pub use block::{Block, transactions_root, receipts_root, ommers_hash};
pub use receipt::Receipt;
pub use address::FromKey;

use bigint::H256;

pub trait RlpHash {
    fn rlp_hash(&self) -> H256;
}