Expand description
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.