Expand description

Core data types for blocks in the tangle.

Modules

A module that provides types and syntactic validations of addresses.

A module that contains constants related to blocks.

A module that provides DTOs.

A module that provides types and syntactic validations of inputs.

A module that provides types and syntactic validations of outputs.

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.

A module that provides types and syntactic validations of payloads. The payload module defines the core data types for representing block payloads.

A module that provides types and syntactic validations of protocol parameters.

A module that provides utilities for random generation of types.

A module that provides types and rules for semantic validation.

A module that provides types and syntactic validations of signatures.

A module that provides types and syntactic validations of unlocks.

Macros

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 [].

TODO

Helper macro to serialize types to string via serde.

Structs

Represent the object that nodes gossip around the network.

A builder to build a Block.

The block object that nodes gossip around in the network.

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

Enums

Error occurring when creating/parsing/validating blocks.