Contract eb27c1d6aad2b9326ff69d0549f6df4f115dec1663f43baa3050ced27bf22457

← Back to Index 📥 Download WASM

Meta

rssdkver 23.5.1#59fcef437260ed4da42d1efb357137a5c166c02e
rsver 1.94.1

Instances

  • CA5RY3BUC4AXNQ4MJJITOUZVMFO3MW3CF4743SIAD46CGY4ICSU6J7OY

Interface

Verify a Falcon-512 signature.

Arguments

  • public_key - 897-byte Falcon-512 public key
  • message - Message that was signed, up to FALCON_MAX_MESSAGE_SIZE bytes
  • signature - Falcon signature (compressed or padded format)

Returns

  • true if the signature is valid, false otherwise.

Returns false for any oversized input rather than silently truncating.

fn verify(
    env: soroban_sdk::Env,
    public_key: soroban_sdk::Bytes,
    message: soroban_sdk::Bytes,
    signature: soroban_sdk::Bytes,
) -> bool

Imports

WebAssembly Text (WAT) ▶