2017-10-24 01:09:44 -07:00
|
|
|
#![cfg_attr(not(feature="std"), no_std)]
|
|
|
|
|
|
|
|
#[cfg(feature="std")]
|
|
|
|
extern crate core;
|
|
|
|
#[macro_use]
|
|
|
|
extern crate crunchy;
|
|
|
|
#[macro_use]
|
|
|
|
extern crate uint as uint_crate;
|
2017-10-30 10:00:58 -07:00
|
|
|
#[macro_use]
|
|
|
|
extern crate fixed_hash;
|
2018-01-05 08:42:29 -08:00
|
|
|
extern crate ethbloom;
|
2017-10-24 01:09:44 -07:00
|
|
|
|
2018-01-23 05:25:15 -08:00
|
|
|
#[cfg(feature="serialize")]
|
|
|
|
extern crate ethereum_types_serialize;
|
|
|
|
#[cfg(feature="serialize")]
|
|
|
|
extern crate serde;
|
|
|
|
|
2018-07-13 09:20:15 -07:00
|
|
|
#[cfg(test)]
|
|
|
|
extern crate serde_json;
|
|
|
|
|
2017-10-30 10:00:58 -07:00
|
|
|
mod hash;
|
2017-10-24 01:09:44 -07:00
|
|
|
mod uint;
|
|
|
|
|
2018-08-22 05:20:25 -07:00
|
|
|
pub use uint::{U64, U128, U256, U512};
|
|
|
|
pub use hash::{H32, H64, H128, H160, H256, H264, H512, H520};
|
2018-01-05 08:42:29 -08:00
|
|
|
pub use ethbloom::{Bloom, BloomRef, Input as BloomInput};
|
2018-01-04 04:14:53 -08:00
|
|
|
pub use fixed_hash::clean_0x;
|
2017-10-30 10:00:58 -07:00
|
|
|
|
|
|
|
pub type Address = H160;
|
|
|
|
pub type Secret = H256;
|
2018-01-02 07:04:11 -08:00
|
|
|
pub type Public = H512;
|
2018-02-06 07:58:05 -08:00
|
|
|
pub type Signature = H520;
|