Versions in this module Expand all Collapse all v1 v1.1.0 Jun 19, 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, 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.ShortID + Timestamp func() time.Time + Verify func(shouldHaveProposer bool, chainID ids.ID) error + func Build(parentID ids.ID, timestamp time.Time, pChainHeight uint64, ...) (SignedBlock, error) + func BuildUnsigned(parentID ids.ID, timestamp time.Time, pChainHeight uint64, blockBytes []byte) (SignedBlock, error)