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 hash | r | s | public key x | public key y |
---|---|---|---|---|
32 | 32 | 32 | 32 | 32 |