cryptography/passkey_keypair library

Classes

PasskeyAuthentication
The result of a WebAuthn assertion (navigator.credentials.get and friends).
PasskeyKeypair
A passkey signer (SIP-9). The private key never leaves the authenticator; signing is delegated to a PasskeyProvider, so every signing method is async.
PasskeyProvider
Bridges to a platform WebAuthn/credentials API. The actual key lives in the authenticator, so this is implemented by the host app (browser via JS interop, iOS/Android via platform channels) and supplied to PasskeyKeypair.
PasskeyRegistration
The public key and credential id returned when registering a new passkey.

Functions

findCommonPublicKey(List<PasskeyPublicKey> a, List<PasskeyPublicKey> b) PasskeyPublicKey
Returns the single public key present in both lists, throwing if there is not exactly one. Used with two PasskeyKeypair.signAndRecover results.