Module agora.consensus.data.Block

Defines the data structure of a block

The design is influenced by Bitcoin, but will be ammended later.

Functions

NameDescription
makeNewBlock(prev_block, txs, preimages, enrollments) Create a new block, referencing the provided previous block.

Structs

NameDescription
Block The block which contains the block header and its body (the transactions).
BlockHeader The block header which contains a link to the previous block header, unless it's the genesis header.