Documentation ¶
Index ¶
Constants ¶
View Source
const CodecVersion = 0
Variables ¶
View Source
var Codec codec.Manager
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block interface { ID() ids.ID ParentID() ids.ID Block() []byte Bytes() []byte // contains filtered or unexported methods }
func BuildOption ¶
BuildOption the option block [parentID] is the ID of this option's wrapper parent block [innerBytes] is the byte representation of a child option block
func Parse ¶
Parse a block and verify that the signature attached to the block is valid for the certificate provided in the block.
func ParseWithoutVerification ¶
ParseWithoutVerification parses a block without verifying that the signature on the block is correct.
type ParseResult ¶
func ParseBlocks ¶
func ParseBlocks(blks [][]byte, chainID ids.ID) []ParseResult
ParseBlocks parses the given raw blocks into tuples of (Block, error). Each ParseResult is returned in the same order as its corresponding bytes in the input.
Click to show internal directories.
Click to hide internal directories.