Overview

  • name: IRIP7212
  • path: IRIP7212.sol
  • context: utility
  • tags: utility, cryptography, precompile, signature-verification
  • title: IRIP7212 - Precompile for secp256r1 (P-256) Curve Support
  • notice: Interface for the RIP-7212 precompile that enables efficient verification of P-256 signatures
  • dev: Located at address 0x0000000000000000000000000000000000000100 on chains that support RIP-7212

Addresses

Function signatures

batchVerify(bytes32[],bytes32[],bytes32[],bytes32[],bytes32[])
verify(bytes32,bytes32,bytes32,bytes32,bytes32)

ABI

[
  {
    "inputs": [
      {
        "internalType": "bytes32[]",
        "name": "hashes",
        "type": "bytes32[]"
      },
      {
        "internalType": "bytes32[]",
        "name": "rs",
        "type": "bytes32[]"
      },
      {
        "internalType": "bytes32[]",
        "name": "ss",
        "type": "bytes32[]"
      },
      {
        "internalType": "bytes32[]",
        "name": "xs",
        "type": "bytes32[]"
      },
      {
        "internalType": "bytes32[]",
        "name": "ys",
        "type": "bytes32[]"
      }
    ],
    "name": "batchVerify",
    "outputs": [
      {
        "internalType": "bool",
        "name": "valid",
        "type": "bool"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "bytes32",
        "name": "hash",
        "type": "bytes32"
      },
      {
        "internalType": "bytes32",
        "name": "r",
        "type": "bytes32"
      },
      {
        "internalType": "bytes32",
        "name": "s",
        "type": "bytes32"
      },
      {
        "internalType": "bytes32",
        "name": "x",
        "type": "bytes32"
      },
      {
        "internalType": "bytes32",
        "name": "y",
        "type": "bytes32"
      }
    ],
    "name": "verify",
    "outputs": [
      {
        "internalType": "bool",
        "name": "valid",
        "type": "bool"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  }
]