package
1.8.2
Repository: https://github.com/multiversx/mx-chain-go.git
Documentation: pkg.go.dev

# Functions

ComputeConsensusGroup will compute the consensus group that assembled the provided block.
ComputeSignersPublicKeys will extract from the provided consensus group slice only the strings that matched with the bitmap.
NewHeaderIntegrityVerifier returns a new instance of a structure capable of verifying the integrity of a provided header.
NewHeaderSigVerifier will create a new instance of HeaderSigVerifier.

# Variables

ErrIndexNotSelected signals that the given index is not selected.
ErrIndexOutOfBounds signals that the given index is outside expected bounds.
ErrInvalidChainID signals that an invalid chain ID has been provided.
ErrInvalidReferenceChainID signals that the provided reference chain ID is not valid.
ErrNilHeaderVersionHandler signals that the provided header version handler is nil.
ErrNotEnoughSignatures signals that a block is not signed by at least the minimum number of validators from the consensus group.
ErrWrongSizeBitmap signals that the provided bitmap's length is bigger than the one that was required.

# Structs

ArgsHeaderSigVerifier is used to store all components that are needed to create a new HeaderSigVerifier.
HeaderSigVerifier is component used to check if a header is valid.