gokzg

package
v0.1.1-experimental.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Verifier

type Verifier struct {
	*gokzg4844.Context
}

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.

Jump to

Keyboard shortcuts

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