package
0.2501.0
Repository: https://github.com/oasisprotocol/oasis-core.git
Documentation: pkg.go.dev

# Functions

NewEmptyBlock creates a new empty block with a specific type.
NewGenesisBlock creates a new empty genesis block given a runtime id and POSIX timestamp.

# Constants

EpochTransition is a header resulting from an epoch transition.
Invalid is an invalid header type and should never be stored.
Normal is a normal header.
RoundFailed is a header resulting from a failed round.
Suspended is a header resulting from the runtime being suspended.

# Variables

ErrInvalidVersion is the error returned when a version is invalid.

# Structs

Block is an Oasis block.
Header is a block header.

# Type aliases

HeaderType is the type of header.
Timestamp is a custom time stamp type that encodes like time.Time when marshaling to text.