PasskeyKeypair class
A passkey signer (SIP-9). The private key never leaves the authenticator; signing is delegated to a PasskeyProvider, so every signing method is async.
Constructors
- PasskeyKeypair(Uint8List publicKey, PasskeyProvider provider, [Uint8List? credentialId])
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getCredentialId(
) → Uint8List? -
getKeyScheme(
) → SignatureScheme -
getPublicKey(
) → PasskeyPublicKey -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sign(
Uint8List data) → Future< Uint8List> -
Asks the authenticator to sign
data(typicallyblake2b(intent_message), passed as the WebAuthn challenge) and returns the BCS-encodedPasskeyAuthenticator(without the outer scheme flag). -
signPersonalMessage(
Uint8List bytes) → Future< SignatureWithBytes> -
signTransaction(
Uint8List bytes) → Future< SignatureWithBytes> -
signWithIntent(
Uint8List bytes, IntentScope intent) → Future< SignatureWithBytes> -
toString(
) → String -
A string representation of this object.
inherited
-
toSuiAddress(
) → String
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getPasskeyInstance(
PasskeyProvider provider) → Future< PasskeyKeypair> -
Registers a fresh passkey via
providerand returns a signer for it. Only call this when creating a passkey wallet for the first time; to use an existing passkey whose public key is unknown, see signAndRecover. -
signAndRecover(
PasskeyProvider provider, Uint8List message) → Future< List< PasskeyPublicKey> > -
Signs
messageand returns every public key (up to 4) that could have produced the signature. Call twice with different messages and intersect the results (see findCommonPublicKey) to identify an existing passkey whose public key is not yet known to the wallet.