Module kzg_point_evaluation

Source
Expand description

KZG point evaluation precompile added in EIP-4844 For more details check run function.

Constants§

ADDRESS
Address of the KZG point evaluation precompile.
GAS_COST
Gas cost of the KZG point evaluation precompile.
POINT_EVALUATION
KZG point evaluation precompile, containing address and function to run.
RETURN_VALUE
U256(FIELD_ELEMENTS_PER_BLOB).to_be_bytes() ++ BLS_MODULUS.to_bytes32()
VERSIONED_HASH_VERSION_KZG
Versioned hash version for KZG.

Functions§

as_array
Convert a slice to an array of a specific size.
as_bytes32
Convert a slice to a 32 byte big endian array.
as_bytes48
Convert a slice to a 48 byte big endian array.
kzg_to_versioned_hash
VERSIONED_HASH_VERSION_KZG ++ sha256(commitment)[1..]
run
Run kzg point evaluation precompile.
verify_kzg_proof
Verify KZG proof.