getCredentialIdFromSigner

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)

Parameters

signer

The signer to extract the credential ID from