ckzg

package
v0.1.1-experimental.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidProof is returned when a proof is invalid.
	ErrInvalidProof = errors.New("invalid proof")

	// ErrCGONotEnabled is returned when cgo is not enabled.
	ErrCGONotEnabled = errors.New("cgo is not enabled")
)

Functions

This section is empty.

Types

type Verifier

type Verifier struct{}

Verifier is a verifier that utilizies the CKZG library.

func NewVerifier

func NewVerifier(ts *gokzg4844.JSONTrustedSetup) (*Verifier, error)

NewVerifier creates a new CKZG verifier.

func (Verifier) VerifyBlobProof

func (v Verifier) VerifyBlobProof(
	*kzg.Blob,
	kzg.Proof,
	kzg.Commitment,
) error

VerifyBlobProof will error since cgo is not enabled.

func (Verifier) VerifyBlobProofBatch

func (v Verifier) VerifyBlobProofBatch(
	*proof.BlobProofArgs,
) error

VerifyBlobProofBatch will error since cgo is not enabled.

Jump to

Keyboard shortcuts

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