Contract 53fe6e349af7fc9c0db89992cd1c2e3bc6387f3fcc0b3e87738affc103651d1d

← Back to Index 📥 Download WASM

Meta

rssdkver 23.2.1#ab415a33cc1f6bdce20ac4a12f0ddbe41a648949
rsver 1.91.1

Instances

  • CC6ICJXF6QUBD246JILYHQKEBOZGRGL33ZL6CQ62O6RB4YFGYB4WZHJP

Interface

Verifies an EVM signature and checks if it matches the expected Ethereum address.

Arguments

  • e - Soroban environment
  • hash - The 32-byte message hash that was signed (Keccak256)
  • key_data - The expected 20-byte Ethereum address
  • sig_data - The 65-byte signature (r: 32, s: 32, v: 1)

Returns

true if the recovered address matches key_data, false otherwise.

fn verify(
    env: soroban_sdk::Env,
    hash: soroban_sdk::Bytes,
    key_data: soroban_sdk::BytesN<20>,
    sig_data: soroban_sdk::BytesN<65>,
) -> bool

Imports

WebAssembly Text (WAT) ▶