Module exocore_chain::block[][src]

Structs

BlockBuilder

In-memory block.

BlockOperations

Wraps operations header stored in a block.

BlockOperationsIterator

Iterator over operations stored in a block.

BlockSignature

Represents a signature of the block by one node, using its own key to sign the block’s hash.

BlockSignatures

Represents signatures stored in a block. Since a node writes a block as soon as it has enough signatures, signatures can differ from one node to the other. Signatures frame is pre-allocated, which means that not all signatures may fit. But in theory, it should always contain enough space for all nodes to add their own signature.

DataBlock

Block from an arbitrary type of data.

Enums

Error

Block related errors

Traits

Block

A trait representing a block stored or to be stored in the chain. It can either be a referenced block (BlockRef) or a in-memory block (BlockOwned).

Functions

build_header_frame
read_header_frame

Reads block header frame from an underlying frame (or just data)

read_header_frame_from_next_offset

Type Definitions

BlockHeaderFrame
BlockHeaderFrameBuilder
BlockHeight
BlockOffset
BlockOperationsSize
BlockSignaturesSize
SignaturesFrame