Passkey

data class Passkey(val credentialId: String? = null, val credentialIdBytes: ByteArray? = null, val keyData: ByteArray? = null, val transports: List<String>? = null) : SelectedSigner

A passkey (WebAuthn) signer.

Each instance triggers one OS WebAuthn authentication prompt.

Constructors

Link copied to clipboard
constructor(credentialId: String? = null, credentialIdBytes: ByteArray? = null, keyData: ByteArray? = null, transports: List<String>? = null)

Properties

Link copied to clipboard

Base64URL-encoded credential ID for display/logging.

Link copied to clipboard

Raw credential ID bytes used for the WebAuthn allowCredentials constraint. Passed directly to avoid base64url encode/decode round-trip issues on JS.

Link copied to clipboard

Full key data (secp256r1 public key + credentialId bytes) for this passkey signer. When provided, the SDK uses it directly without an on-chain lookup. Must be supplied by the caller from the signer data already available client-side.

Link copied to clipboard

Optional transport hints for this credential (e.g., "internal", "hybrid"). Enables cross-device authentication flows such as QR code scanning.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int