Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobProofArgs ¶
type BlobProofArgs struct {
// Blob is the blob.
Blobs []*kzg.Blob
// Proof is the KZG proof.
Proofs []kzg.Proof
// Commitment is the KZG commitment.
Commitments []kzg.Commitment
}
BlobProofArgs represents the arguments for a blob proof.
func ArgsFromSidecars ¶
func ArgsFromSidecars( scs *types.BlobSidecars, ) *BlobProofArgs
ArgsFromSidecars converts a BlobSidecars to a slice of BlobProofArgs.
type BlobProofVerifier ¶
type BlobProofVerifier interface {
// VerifyBlobProof verifies that the blob data corresponds to the provided
// commitment.
VerifyBlobProof(
blob *kzg.Blob,
proof kzg.Proof,
commitment kzg.Commitment,
) error
// VerifyBlobProofBatch verifies the KZG proof that the polynomial
// represented
// by the blob evaluated at the given point is the claimed value.
// For most implementations it is more efficient than VerifyBlobProof when
// verifying multiple proofs.
VerifyBlobProofBatch(
*BlobProofArgs,
) error
}
BlobProofVerifier is a verifier for blobs.
Click to show internal directories.
Click to hide internal directories.