Versions in this module Expand all Collapse all v1 v1.9.0 Oct 3, 2022 Changes in this version + type Block interface + Block func() []byte + Bytes func() []byte + ID func() ids.ID + ParentID func() ids.ID + func BuildOption(parentID ids.ID, innerBytes []byte) (Block, error) + func Parse(bytes []byte) (Block, bool, error) + type Header interface + BodyID func() ids.ID + Bytes func() []byte + ChainID func() ids.ID + ParentID func() ids.ID + func BuildHeader(chainID ids.ID, parentID ids.ID, bodyID ids.ID) (Header, error) + func ParseHeader(bytes []byte) (Header, error) + type SignedBlock interface + PChainHeight func() uint64 + Proposer func() ids.NodeID + Timestamp func() time.Time + Verify func(shouldHaveProposer bool, chainID ids.ID) error + func BuildApricot(parentID ids.ID, timestamp time.Time, pChainHeight uint64, ...) (SignedBlock, error) + func BuildBlueberry(parentID ids.ID, timestamp time.Time, pChainHeight uint64, ...) (SignedBlock, error) + func BuildUnsignedApricot(parentID ids.ID, timestamp time.Time, pChainHeight uint64, blockBytes []byte) (SignedBlock, error) + func BuildUnsignedBlueberry(parentID ids.ID, timestamp time.Time, pChainHeight uint64, blockBytes []byte) (SignedBlock, error)