Verifies an EVM signature and checks if it matches the expected Ethereum address.
e - Soroban environmenthash - The 32-byte message hash that was signed (Keccak256)key_data - The expected 20-byte Ethereum addresssig_data - The 65-byte signature (r: 32, s: 32, v: 1)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