Module kzg_point_evaluation   
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.