parity-common/ethereum-types/src/lib.rs

33 lines
692 B
Rust
Raw Normal View History

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
#[cfg(feature="serialize")]
extern crate ethereum_types_serialize;
#[cfg(feature="serialize")]
extern crate serde;
#[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;
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};
pub use fixed_hash::clean_0x;
2017-10-30 10:00:58 -07:00
pub type Address = H160;
pub type Secret = H256;
pub type Public = H512;
2018-02-06 07:58:05 -08:00
pub type Signature = H520;