Crate bee_block

Source
Expand description

Core data types for blocks in the tangle.

Re-exports§

pub use self::block::dto::BlockDto;
pub use self::block::Block;
pub use self::block::BlockBuilder;

Modules§

address
A module that provides types and syntactic validations of addresses.
block
A module that provides types and syntactic validations of blocks.
dto
A module that provides DTOs.
helper
A module that contains helper functions and types.
input
A module that provides types and syntactic validations of inputs.
output
A module that provides types and syntactic validations of outputs.
parent
A module that provides types and syntactic validations of parents. The parents module defines the core data type for storing the blocks directly approved by a block.
payload
A module that provides types and syntactic validations of payloads. The payload module defines the core data types for representing block payloads.
protocol
A module that provides types and syntactic validations of protocol parameters.
rand
A module that provides utilities for random generation of types.
semantic
A module that provides types and rules for semantic validation.
signature
A module that provides types and syntactic validations of signatures.
unlock
A module that provides types and syntactic validations of unlocks.

Macros§

create_bitflags
A convenience macro to work around the fact the [bitflags] crate does not yet support iterating over the individual flags. This macro essentially creates the [bitflags] and puts the individual flags into an associated constant pub const ALL_FLAGS: &'static [].
impl_id
TODO
string_serde_impl
Helper macro to serialize types to string via serde.

Structs§

BlockId
A block identifier, the BLAKE2b-256 hash of the block bytes. See https://www.blake2.net/ for more information.

Enums§

DtoError
Error
Error occurring when creating/parsing/validating blocks.
InxError