Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Verifier ¶
Verifier is a KZG verifier that uses the Go implementation of KZG.
func NewVerifier ¶
func NewVerifier(ts *gokzg4844.JSONTrustedSetup) (*Verifier, error)
NewVerifier creates a new GoKZGVerifier.
func (Verifier) VerifyBlobProof ¶
func (v Verifier) VerifyBlobProof( blob *kzg.Blob, proof kzg.Proof, commitment kzg.Commitment, ) error
VerifyProof verifies the KZG proof that the polynomial represented by the blob evaluated at the given point is the claimed value.
func (Verifier) VerifyBlobProofBatch ¶
func (v Verifier) VerifyBlobProofBatch( args *proof.BlobProofArgs, ) error
VerifyBlobProofBatch verifies the KZG proof that the polynomial represented by the blob evaluated at the given point is the claimed value. It is more efficient than VerifyBlobProof when verifying multiple proofs.
Click to show internal directories.
Click to hide internal directories.