PasskeyPublicKey class
A passkey (WebAuthn) public key. The underlying key is a 33-byte compressed secp256r1 point; signatures are produced by an authenticator over the WebAuthn signing payload rather than over the message directly.
- Mixed-in types
Constructors
- PasskeyPublicKey(Uint8List value)
- PasskeyPublicKey.fromString(String publicKeyBase64)
-
factory
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
-
equals(
PublicKey publicKey) → bool -
Checks if two public keys are equal
inherited
-
flag(
) → int -
Return signature scheme flag of the public key
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBase64(
) → String -
Return the base-64 representation of the public key
override
-
toRawBytes(
) → Uint8List -
Return the byte array representation of the public key
override
-
toString(
) → String -
A string representation of this object.
override
-
toSuiAddress(
) → String -
Return the Sui address associated with this public key
override
-
toSuiBytes(
) → Uint8List -
Raw public key bytes prefixed with the signature scheme flag.
inherited
-
toSuiPublicKey(
) → String -
Base-64 Sui public key: scheme flag concatenated with raw bytes.
inherited
-
verify(
Uint8List data, Uint8List signature) → bool -
Verifies that the signature is valid for for the provided message
override
-
verifyAddress(
String address) → bool -
Verifies that the public key is associated with the provided address
inherited
-
verifyPersonalMessage(
Uint8List message, String signature) → bool -
inherited
-
verifyTransaction(
Uint8List transaction, String signature) → bool -
inherited
-
verifyWithIntent(
Uint8List bytes, String signature, IntentScope intent) → bool -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited