package
5.2.0
Repository: https://github.com/prysmaticlabs/prysm.git
Documentation: pkg.go.dev

# Functions

BlobSidecarNoop is a FAKE verification function that simply launders a ROBlob->VerifiedROBlob.
BlobSidecarSliceNoop is a FAKE verification function that simply launders a ROBlob->VerifiedROBlob.
FakeVerifyForTest can be used by tests that need a VerifiedROBlob but don't want to do all the expensive set up to perform full validation.
FakeVerifySliceForTest can be used by tests that need a []VerifiedROBlob but don't want to do all the expensive set up to perform full validation.
NewBlobBatchVerifier initializes a blob batch verifier.
NewInitializerWaiter creates an InitializerWaiter which can be used to obtain an Initializer once async dependencies are ready.
WithForkLookup allows tests to modify how Fork consensus type lookup works.

# Constants

# Variables

BackfillBlobSidecarRequirements is the same as InitsyncBlobSidecarRequirements.
ELMemPoolRequirements defines the verification requirements for importing blobs and proofs from the execution layer's mempool.
ErrBatchBlockRootMismatch is returned by VerifiedROBlobs in the scenario where the root of the given signed block does not match the block header in one of the corresponding sidecars.
ErrBatchSignatureMismatch is returned by VerifiedROBlobs when any of the blobs in the batch have a signature which does not match the signature for the block with a corresponding root.
ErrBlobIndexInvalid means RequireBlobIndexInBounds failed.
ErrFromFutureSlot means RequireSlotNotTooEarly failed.
ErrInvalidProposerSignature means RequireValidProposerSignature failed.
ErrMissingVerification indicates that the given verification function was never performed on the value.
ErrSidecarInclusionProofInvalid means RequireSidecarInclusionProven failed.
ErrSidecarKzgProofInvalid means RequireSidecarKzgProofVerified failed.
ErrSidecarNotFinalizedDescendent means RequireSidecarDescendsFromFinalized failed.
ErrSidecarParentInvalid means RequireSidecarParentValid failed.
ErrSidecarParentNotSeen means RequireSidecarParentSeen failed.
ErrSidecarUnexpectedProposer means RequireSidecarProposerExpected failed.
ErrSlotNotAfterFinalized means RequireSlotAboveFinalized failed.
ErrSlotNotAfterParent means RequireSidecarParentSlotLower failed.
GossipBlobSidecarRequirements defines the set of requirements that BlobSidecars received on gossip must satisfy in order to upgrade an ROBlob to a VerifiedROBlob.
InitsyncBlobSidecarRequirements is the list of verification requirements to be used by the init-sync service for batch-mode syncing.
PendingQueueBlobSidecarRequirements is the same as InitsyncBlobSidecarRequirements, used by the pending blocks queue.
SpectestBlobSidecarRequirements is used by the forkchoice spectests when verifying blobs used in the on_block tests.

# Structs

BlobBatchVerifier solves problems that come from verifying batches of blobs from RPC.
Initializer is used to create different Verifiers.
InitializerWaiter provides an Initializer once all dependent resources are ready via the WaitForInitializer method.
SignatureData represents the set of parameters that together uniquely identify a signature observed on a beacon block.
VerificationMultiError is a custom error that can be used to access individual verification failures.

# Interfaces

BlobVerifier defines the methods implemented by the ROBlobVerifier.
Forkchoicer represents the forkchoice methods that the verifiers need.
ProposerCache represents a type that can compute the proposer for a given slot + parent root, and cache the result so that it can be reused when the same verification needs to be performed across multiple values.
SignatureCache represents a type that can perform signature verification and cache the result so that it can be used when the same signature is seen in multiple places, like a SignedBeaconBlockHeader found in multiple BlobSidecars.
StateByRooter describes a stategen-ish type that can produce arbitrary states by their root.
ValidatorAtIndexer defines the method needed to retrieve a validator by its index.

# Type aliases

NewBlobVerifier is a function signature that can be used by code that needs to be able to mock Initializer.NewBlobVerifier without complex setup.
Requirement represents a validation check that needs to pass in order for a Verified form a consensus type to be issued.