@polygon-hermez/vm
Version:
An Ethereum VM implementation
13 lines (12 loc) • 510 B
TypeScript
import { PrecompileInput } from './types';
import { ExecResult } from '../evm';
/**
* Precompiled contract for P256 signature verification (RIP-7212).
* It takes the public key, message hash, and signature, and verifies if the signature is valid.
*
* Input:
* - publicKey: 64 bytes (32 bytes for X coordinate, 32 bytes for Y coordinate)
* - signature: 64 bytes (32 bytes for R, 32 bytes for S)
* - message: 32 bytes (hash of the message)
*/
export default function (opts: PrecompileInput): ExecResult;