Crate rust_eth_kzg

Crate rust_eth_kzg 

Source

Modules§

constants

Structs§

DASContext
DASContext manages the shared environment for creating and verifying KZG cell proofs used in PeerDAS (EIP-7594).
TrustedSetup
TrustedSetup contains the Structured Reference String(SRS) needed to make and verify proofs. Represents an Ethereum trusted setup used for KZG commitments on the BLS12-381 curve.

Enums§

Error
Errors that can occur either during proving, verification or serialization.
UsePrecomp
UsePrecomp indicates whether we should use pre-computations to speed up the MSM and the level of precomputation to perform.

Type Aliases§

BlobRef
BlobRef denotes a references to an opaque Blob.
Bytes48Ref
Bytes48Ref denotes a reference to an untrusted cryptographic type that can be represented in 48 bytes. This will be either a purported KZGProof or a purported KZGCommitment.
Cell
Cell contains a group of evaluations on a coset that one would like to make and verify opening proofs about.
CellIndex
CellIndex is reference to the coset/set of points that were used to create that Cell, on a particular polynomial, f(x).
CellRef
CellRef contains a reference to a Cell.
KZGCommitment
KZGCommitment denotes a 48 byte commitment to a polynomial f(x) that we would like to make and verify opening proofs about.
KZGProof
KZGProof denotes a 48 byte commitment to a polynomial that one can use to either:
SerializedScalar
SerializedScalar denotes a 32 byte field element.