cast::revm::precompile::secp256r1

Function p256_verify

pub fn p256_verify(
    input: &Bytes,
    gas_limit: u64,
) -> Result<PrecompileOutput, PrecompileErrors>
Available on crate feature secp256r1 only.
Expand description

secp256r1 precompile logic. It takes the input bytes sent to the precompile and the gas limit. The output represents the result of verifying the secp256r1 signature of the input.

The input is encoded as follows:

signed message hashrspublic key xpublic key y
3232323232