Versions in this module Expand all Collapse all v2 v2.0.1 Sep 3, 2024 Changes in this version + const BytesPerBlob + const BytesPerCell + const BytesPerCommitment + const BytesPerFieldElement + const BytesPerProof + const CellsPerExtBlob + const FieldElementsPerBlob + const FieldElementsPerCell + var ErrBadArgs = errors.New("bad arguments") + var ErrError = errors.New("unexpected error") + var ErrMalloc = errors.New("malloc failed") + func ComputeCellsAndKZGProofs(blob *Blob) ([CellsPerExtBlob]Cell, [CellsPerExtBlob]KZGProof, error) + func ComputeKZGProof(blob *Blob, zBytes Bytes32) (KZGProof, Bytes32, error) + func FreeTrustedSetup() + func LoadTrustedSetup(g1MonomialBytes, g1LagrangeBytes, g2MonomialBytes []byte, precompute uint) error + func LoadTrustedSetupFile(trustedSetupFile string, precompute uint) error + func RecoverCellsAndKZGProofs(cellIndices []uint64, cells []Cell) ([CellsPerExtBlob]Cell, [CellsPerExtBlob]KZGProof, error) + func VerifyBlobKZGProof(blob *Blob, commitmentBytes, proofBytes Bytes48) (bool, error) + func VerifyBlobKZGProofBatch(blobs []Blob, commitmentsBytes, proofsBytes []Bytes48) (bool, error) + func VerifyCellKZGProofBatch(commitmentsBytes []Bytes48, cellIndices []uint64, cells []Cell, ...) (bool, error) + func VerifyKZGProof(commitmentBytes Bytes48, zBytes, yBytes Bytes32, proofBytes Bytes48) (bool, error) + type Blob [BytesPerBlob]byte + func (b *Blob) UnmarshalText(input []byte) error + type Bytes32 [32]byte + func (b *Bytes32) UnmarshalText(input []byte) error + type Bytes48 [48]byte + func (b *Bytes48) UnmarshalText(input []byte) error + type Cell [BytesPerCell]byte + func (c *Cell) UnmarshalText(input []byte) error + type KZGCommitment Bytes48 + func BlobToKZGCommitment(blob *Blob) (KZGCommitment, error) + type KZGProof Bytes48 + func ComputeBlobKZGProof(blob *Blob, commitmentBytes Bytes48) (KZGProof, error) Other modules containing this package github.com/ethereum/c-kzg-4844