kzg

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CryptoCtx

func CryptoCtx() gokzg4844.Context

CryptoCtx returns a context object stores all of the necessary configurations to allow one to create and verify blob proofs. This function is expensive to run if the crypto context isn't initialized, so it is recommended to pre-initialize by calling InitializeCryptoCtx

func InitializeCryptoCtx

func InitializeCryptoCtx()

InitializeCryptoCtx initializes the global context object returned via CryptoCtx

Types

type BlobID

type BlobID uint64

func (BlobID) FillBlob

func (blobId BlobID) FillBlob(blob *gokzg4844.Blob) error

func (BlobID) GenerateBlob

func (blobId BlobID) GenerateBlob() (*gokzg4844.Blob, *gokzg4844.KZGCommitment, *gokzg4844.KZGProof, error)

Jump to

Keyboard shortcuts

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