2026-06-16 02:50:52 +03:00

1 line
5.8 KiB
JSON

{"abi":[{"type":"function","name":"CANONICAL_PRECOMPILE","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"pure"},{"type":"function","name":"verifyEd25519","inputs":[{"name":"publicKey","type":"bytes32","internalType":"bytes32"},{"name":"message","type":"bytes","internalType":"bytes"},{"name":"signature","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"ok","type":"bool","internalType":"bool"}],"stateMutability":"view"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"CANONICAL_PRECOMPILE()":"eebdf273","verifyEd25519(bytes32,bytes,bytes)":"6694d17e"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"CANONICAL_PRECOMPILE\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"publicKey\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"verifyEd25519\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"ok\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"CANONICAL_PRECOMPILE()\":{\"returns\":{\"_0\":\"The canonical precompile address `0x...0402`.\"}},\"verifyEd25519(bytes32,bytes,bytes)\":{\"params\":{\"message\":\"The exact canonical bytes that were signed (CAN canonical JSON without the `casper_policy_signature` field).\",\"publicKey\":\"The 32-byte ed25519 public key (Casper account public key bytes, i.e. the key after the `01` ed25519 algorithm prefix).\",\"signature\":\"The 64-byte ed25519 signature.\"},\"returns\":{\"ok\":\"True if and only if the signature is valid for the key over the message.\"}}},\"title\":\"ICasperSigVerifier\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"CANONICAL_PRECOMPILE()\":{\"notice\":\"Documented canonical address for an ed25519 verification precompile on chains that expose one. Adapters that wrap an oracle may live elsewhere.\"},\"verifyEd25519(bytes32,bytes,bytes)\":{\"notice\":\"Verify a Casper ed25519 signature.\"}},\"notice\":\"Precompile-style interface for verifying Casper ed25519 signatures on EVM. EVM chains do not expose a standard native ed25519 precompile, so Cred402 routes Casper ed25519 verification through this interface. A deployment may point it at: - a real ed25519 verification precompile, when the host chain provides one (documented canonical address `0x0000000000000000000000000000000000000402`), or - a trusted oracle / adapter contract that wraps such verification. Implementations MUST be pure verification: given a 32-byte ed25519 public key, an arbitrary message, and a 64-byte ed25519 signature, return whether the signature is valid for that key over that message. They MUST NOT mutate state and MUST NOT revert on an invalid signature \\u2014 they return `false` instead so callers can branch.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/interfaces/ICasperSigVerifier.sol\":\"ICasperSigVerifier\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[],\"viaIR\":true},\"sources\":{\"src/interfaces/ICasperSigVerifier.sol\":{\"keccak256\":\"0x2d7fc6bbab95cd786fb46cdc8e5e3522b58ef108aa688d88c7c6182467f8ee37\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5e156c0b6f8cfbe17c6cf03bfd4dba9ce9588c15001e25950f345be172f1c787\",\"dweb:/ipfs/QmZshSztDKMAeLt9zkW1StgZDUHed8C3hwBPBKVoz6voFK\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.24+commit.e11b9ed9"},"language":"Solidity","output":{"abi":[{"inputs":[],"stateMutability":"pure","type":"function","name":"CANONICAL_PRECOMPILE","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"bytes32","name":"publicKey","type":"bytes32"},{"internalType":"bytes","name":"message","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}],"stateMutability":"view","type":"function","name":"verifyEd25519","outputs":[{"internalType":"bool","name":"ok","type":"bool"}]}],"devdoc":{"kind":"dev","methods":{"CANONICAL_PRECOMPILE()":{"returns":{"_0":"The canonical precompile address `0x...0402`."}},"verifyEd25519(bytes32,bytes,bytes)":{"params":{"message":"The exact canonical bytes that were signed (CAN canonical JSON without the `casper_policy_signature` field).","publicKey":"The 32-byte ed25519 public key (Casper account public key bytes, i.e. the key after the `01` ed25519 algorithm prefix).","signature":"The 64-byte ed25519 signature."},"returns":{"ok":"True if and only if the signature is valid for the key over the message."}}},"version":1},"userdoc":{"kind":"user","methods":{"CANONICAL_PRECOMPILE()":{"notice":"Documented canonical address for an ed25519 verification precompile on chains that expose one. Adapters that wrap an oracle may live elsewhere."},"verifyEd25519(bytes32,bytes,bytes)":{"notice":"Verify a Casper ed25519 signature."}},"version":1}},"settings":{"remappings":[],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"src/interfaces/ICasperSigVerifier.sol":"ICasperSigVerifier"},"evmVersion":"cancun","libraries":{},"viaIR":true},"sources":{"src/interfaces/ICasperSigVerifier.sol":{"keccak256":"0x2d7fc6bbab95cd786fb46cdc8e5e3522b58ef108aa688d88c7c6182467f8ee37","urls":["bzz-raw://5e156c0b6f8cfbe17c6cf03bfd4dba9ce9588c15001e25950f345be172f1c787","dweb:/ipfs/QmZshSztDKMAeLt9zkW1StgZDUHed8C3hwBPBKVoz6voFK"],"license":"MIT"}},"version":1},"id":12}