signerMatchesCredential

Checks if a signer matches a given credential ID.

Useful for finding a specific passkey signer among a list of signers.

Return

true if the signer is a WebAuthn signer with a matching credential ID

Example:

val matchingSigner = signers.find {
SmartAccountBuilders.signerMatchesCredential(it, myCredentialId)
}

Parameters

signer

The signer to check

credentialId

The credential ID to match (raw bytes)