Verify a WebAuthn signature against a message and public key.
signature_payload - The message hash that was signedkey_data - Bytes containing:sig_data - XDR-encoded WebAuthnSigData structure containing:true if the signature is validfalse otherwisefn verify(
env: soroban_sdk::Env,
signature_payload: soroban_sdk::Bytes,
key_data: soroban_sdk::Bytes,
sig_data: soroban_sdk::Bytes,
) -> bool
Returns the canonical byte representation of a WebAuthn public key.
The canonical identity is the 65-byte uncompressed secp256r1 public key, stripping the variable-length credential ID suffix which is not part of the cryptographic identity.
key_data - Bytes containing the 65-byte public key followed by an
optional credential ID.fn canonicalize_key(
env: soroban_sdk::Env,
key_data: soroban_sdk::Bytes,
) -> soroban_sdk::Bytes
Canonicalizes a batch of WebAuthn keys.
keys_data - A vector with bytes containing the 65-byte public key
followed by an optional credential ID.fn batch_canonicalize_key(
env: soroban_sdk::Env,
keys_data: soroban_sdk::Vec,
) -> soroban_sdk::Vec