proof

package
v0.1.1-experimental.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 2 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL