package
6.17.1+incompatible
Repository: https://github.com/factomproject/factomd.git
Documentation: pkg.go.dev

# Functions

CheckBlockPairIntegrity checks that the input block is derived from the previous block via their header information.
NewCommitChain creates a newly initialized commit chain.
NewCommitEntry returns a new commit entry.
NewECBlock creates a new empty EC block.
NewECBlockBody creates a new, empty EC block body.
NewECBlockHeader creates a new initialized EC block header.
NewIncreaseBalance creates a newly initialized object.
NewMinuteNumber returns a new minute number object with the input number stored as the minute.
NewServerIndexNumber creates a new server index number object.
NewServerIndexNumber2 creates a new server index number object, with the ServerIndexNumber set to the input.
NextECBlock creates a new EC block with header information filled in from the input previous block information.
UnmarshalECBlock unmarshals the input data into a new EC block.

# Constants

CommitChainSize = 1+6+32+32+32+1+32+64 These are the sizes of the members of the data structure below.
CommitEntrySize = 1 + 6 + 32 + 1 + 32 + 64 These are the sizes of the members of the data structure below.
MinuteNumberSize is the size of the object below (1 uint8 member).
ServerIndexNumberSize is the size of the object below (1 uint8 member).

# Structs

CommitChain is a data structure which affects EC balances when committing a new user chain into the Factom blockchain see https://github.com/FactomProject/FactomDocs/blob/master/factomDataStructureDetails.md#entry_commit.
CommitEntry is a type of EC block entry which handles commits to the block chain.
ECBlock is an Entry Credit Block and consists of a header and a body.
ECBlockBody contains all the entry information for the EC block.
ECBlockHeader contains information related to this EC block as well as the previous EC block.
IncreaseBalance is an entry credit block entry type which increases the entry credit balance at an address.
MinuteNumber is an entry credit block entry type.
ServerIndexNumber is an entry credit block entry.

# Type aliases

ExpandedECBlockHeader is used to help in the function below.