openethereum/ethcore/src/basic_types.rs

18 lines
421 B
Rust
Raw Normal View History

2016-02-02 15:29:53 +01:00
//! Ethcore basic typenames.
use util::*;
/// Type for a 2048-bit log-bloom, as used by our blocks.
pub type LogBloom = H2048;
/// Constant 2048-bit datum for 0. Often used as a default.
pub static ZERO_LOGBLOOM: LogBloom = H2048([0x00; 256]);
2016-01-11 20:36:29 +01:00
2016-02-02 23:43:29 +01:00
/// Semantic boolean for when a seal/signature is included.
2016-01-11 20:36:29 +01:00
pub enum Seal {
2016-02-02 23:43:29 +01:00
/// The seal/signature is included.
2016-01-11 20:36:29 +01:00
With,
2016-02-02 23:43:29 +01:00
/// The seal/signature is not included.
2016-01-11 20:36:29 +01:00
Without,
}