sophon_types/
lib.rs

1#![cfg_attr(not(feature = "std"), no_std)]
2
3#[cfg(feature = "std")]
4extern crate core;
5#[macro_use]
6extern crate crunchy;
7#[macro_use]
8extern crate uint as uint_crate;
9#[macro_use]
10extern crate fixed_hash;
11extern crate ethbloom;
12
13#[cfg(feature = "serialize")]
14extern crate sophon_types_serialize;
15#[cfg(feature = "serialize")]
16extern crate serde;
17
18#[cfg(test)]
19extern crate serde_json;
20
21mod hash;
22mod uint;
23
24pub use uint::{U64, U128, U256, U512};
25pub use hash::{H32, H64, H128, H160, H256, H264, H512, H520};
26pub use ethbloom::{Bloom, BloomRef, Input as BloomInput};
27
28pub type Address = H160;
29pub type Secret = H256;
30pub type Public = H512;
31pub type Signature = H520;