Contract 59f2770418c366ea3099b5b9ad5d6366f2ccf5213ce866508a280b38e4d9cefd

← Back to Index 📥 Download WASM

Meta

rssdkver 25.0.2#59a2e01a26f9330f8d516690911cb2ca87a6f1b3
rsver 1.93.0

Instances

  • CD42J3TNNSNGVBAPZJPFHLG7DCSPOQHKJXTIC3DWRWDIRCPJHRSUEQUW

Interface

Verify a WebAuthn signature against a message and public key.

Arguments

  • signature_payload - The message hash that was signed
  • key_data - Bytes containing:
  • 65-byte secp256r1 public key (uncompressed format)
  • Variable length credential ID (used on the client side)
  • sig_data - XDR-encoded WebAuthnSigData structure containing:
  • Authenticator data
  • Client data JSON
  • Signature components

Returns

  • true if the signature is valid
  • false otherwise
fn verify(
    env: soroban_sdk::Env,
    signature_payload: soroban_sdk::Bytes,
    key_data: soroban_sdk::Bytes,
    sig_data: soroban_sdk::Bytes,
) -> bool

Imports

WebAssembly Text (WAT) ▶