1// Copyright 2020 Parity Technologies
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6// option. This file may not be copied, modified, or distributed
7// except according to those terms.
89#![cfg_attr(not(feature = "std"), no_std)]
1011mod hash;
12mod uint;
1314#[cfg(feature = "ethbloom")]
15pub use ethbloom::{Bloom, BloomRef, Input as BloomInput};
16pub use hash::{BigEndianHash, H128, H160, H256, H264, H32, H512, H520, H64};
17pub use uint::{FromDecStrErr, FromStrRadixErr, FromStrRadixErrKind, U128, U256, U512, U64};
1819pub type Address = H160;
20pub type Secret = H256;
21pub type Public = H512;
22pub type Signature = H520;
2324/// Conditional compilation depending on whether ethereum-types is built with ethbloom support.
25#[cfg(feature = "ethbloom")]
26#[macro_export]
27macro_rules! if_ethbloom {
28 ($($tt:tt)*) => {
29 $($tt)*
30 };
31}
3233#[cfg(not(feature = "ethbloom"))]
34#[macro_export]
35#[doc(hidden)]
36macro_rules! if_ethbloom {
37 ($($tt:tt)*) => {};
38}