MLDSA65Keypair class

Secret key is the 32-byte FIPS 204 seed; signing is hedged (randomized).

Mixed-in types

Constructors

MLDSA65Keypair()
factory
MLDSA65Keypair.fromSecretKey(Uint8List secretKey)
factory
MLDSA65Keypair.fromSeed(Uint8List seed)
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

getKeyScheme() → SignatureScheme
Get the key scheme of the keypair: Secp256k1 or Ed25519
override
getPublicKey() → MLDSA65PublicKey
The public key for this keypair
override
getSecretKey() → Uint8List
The secret key for this keypair
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sign(Uint8List bytes) → Uint8List
inherited
signData(Uint8List data) → Uint8List
Return the signature for the data
override
signPersonalMessage(Uint8List bytes) → SignatureWithBytes
Returns the raw message as bytes, not the BCS form that is signed.
inherited
signTransaction(Uint8List bytes) → SignatureWithBytes
inherited
signTransactionBlock(Uint8List bytes) → SignatureWithBytes
inherited
signWithIntent(Uint8List bytes, IntentScope intent) → SignatureWithBytes
Serialized signature plus the signed bytes in base64.
inherited
toString() → String
A string representation of this object.
inherited
toSuiAddress() → String
inherited
verify(Uint8List data, Uint8List signature, Uint8List publicKey) → bool
Verify signature
override
verifyPersonalMessage(Uint8List message, String signature) → bool
Verifies that the signature is valid for for the provided PersonalMessage
inherited
verifySerialized(Uint8List message, String signature, Uint8List publicKey) → bool
Verify serialized signature
override
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

Static Methods

deriveKeypair(String mnemonics, [String? path]) → MLDSA65Keypair
path must be m/94'/784'/{account}'/{change}'/{address}'.
deriveKeypairFromSeed(String seedHex, [String? path]) → MLDSA65Keypair
fromMnemonics(String mnemonics, {int accountIndex = 0, int addressIndex = 0, int changeIndex = 0}) → MLDSA65Keypair