get Credential Id From Signer
Extracts the credential ID from a WebAuthn signer's key data.
WebAuthn signers store key data as: publicKey (65 bytes) + credentialId (variable). This function extracts the credential ID portion from an ExternalSigner.
Return
The credential ID bytes, or null if the signer is not a WebAuthn signer
Example:
val credentialId = SmartAccountBuilders.getCredentialIdFromSigner(signer)Content copied to clipboard
Parameters
signer
The signer to extract the credential ID from