signer Matches Credential
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)
}Content copied to clipboard
Parameters
signer
The signer to check
credential Id
The credential ID to match (raw bytes)