PassKeySigner class

Implemented types

Constructors

PassKeySigner(String namespace, String name, String origin, {bool? crossOrigin})

Properties

defaultId String?
Gets the default credential ID used by the Passkey.
read-onlyoverride
hashCode int
The hash code for this object.
read-onlyinherited
opts PassKeysOptions
Gets the PassKeysOptions used by the PasskeyInterface.
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

clientDataHash(PassKeysOptions options, {String? challenge}) Uint8List
Creates a client data hash for PassKeys authentication.
override
clientDataHash32(PassKeysOptions options, {String? challenge}) Uint8List
Creates a 32-byte client data hash for PassKeys authentication.
override
credentialIdToBytes32Hex(List<int> credentialId) String
Converts a credentialId to a 32-byte hex string.
override
getAddress({int index = 0, dynamic bytes}) String
Returns the Hex address associated with the signer.
override
getMessagingSignature(Uint8List signatureBytes) Future<List<String>>
Gets the messaging signature from the PassKeys authentication response.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
personalSign(Uint8List hash, {int? index, String? id}) Future<Uint8List>
Signs the provided hash using a multi-signature process.
override
register(String name, bool requiresUserVerification) Future<PassKeyPair>
Registers a user and returns a PassKeyPair key pair.
override
signToEc(Uint8List hash, {int? index, String? id}) Future<MsgSignature>
Signs the provided hash and returns the result as a MsgSignature.
override
signToPasskeySignature(Uint8List hash, String credentialId) Future<PassKeySignature>
Signs the intended request and returns the signedMessage.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

credentialHexToBase64(String credentialHex) String
credentialIdToBytes32Hex converts a 32 byte credentialAddress hex to a base64 string