forge::revm::precompile::kzg_point_evaluation

Function run

pub fn run(
    input: &Bytes,
    gas_limit: u64,
    env: &Env,
) -> Result<PrecompileOutput, PrecompileErrors>
Available on crate features c-kzg or kzg-rs only.
Expand description

Run kzg point evaluation precompile.

The Env has the KZGSettings that is needed for evaluation.

The input is encoded as follows: | versioned_hash | z | y | commitment | proof | | 32 | 32 | 32 | 48 | 48 | with z and y being padded 32 byte big endian values