cryptography/passkey_keypair library

Classes

PasskeyAssertion
The result of a passkey assertion (WebAuthn get).
PasskeyKeypair
A passkey signer implementing SIP-9. Holds the 33-byte compressed secp256r1 public key and a PasskeyProvider; the private key never leaves the authenticator. Mirrors Mysten's PasskeyKeypair.
PasskeyProvider
Platform-agnostic passkey provider. The application supplies a WebAuthn backed implementation (browser / iOS / Android); this SDK performs the Sui-specific encoding. Mirrors Mysten's PasskeyProvider.
PasskeyRegistration
The result of creating a passkey credential (WebAuthn create).

Functions

findCommonPublicKey(List<PasskeyPublicKey> a, List<PasskeyPublicKey> b) PasskeyPublicKey
Returns the single public key present in both candidate lists; throws if there isn't exactly one common key.