Ed25519Keypair class

Mixed-in types

Constructors

Ed25519Keypair([Uint8List? secretKey])
Create an Ed25519 keypair; random if secretKey is omitted.
Ed25519Keypair.fromSecretKey(Uint8List secretKey, {bool skipValidation = false})
Create an Ed25519 keypair from a raw secret key; throws on invalid key unless skipValidation.
factory
Ed25519Keypair.fromSeed(Uint8List seed)
Generate a Ed25519 keypair from a 32 byte 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() → Ed25519PublicKey
The public key for this Ed25519 keypair
override
getSecretKey() → Uint8List
The secret key for this keypair
override
keyPair() → KeyPair
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publicKeyBytes() → Uint8List
sign(Uint8List bytes) → Uint8List
inherited
signData(Uint8List data) → Uint8List
Return the signature for the provided data using Ed25519.
override
signPersonalMessage(Uint8List bytes) → SignatureWithBytes
inherited
signTransactionBlock(Uint8List bytes) → SignatureWithBytes
inherited
signWithIntent(Uint8List bytes, IntentScope intent) → SignatureWithBytes
inherited
toString() → String
A string representation of this object.
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 path, String mnemonics) → Ed25519Keypair
Derive an Ed25519 keypair from mnemonics and a SLIP-0010 hardened path (m/44'/784'/{account}'/{change}'/{address}').
deriveKeypairFromSeed(String seedHex, [String? path]) → Ed25519Keypair
Derive an Ed25519 keypair from hex seedHex and SLIP-0010 hardened path (defaults to DEFAULT_ED25519_DERIVATION_PATH).
fromMnemonics(String mnemonics, {int accountIndex = 0, int addressIndex = 0, int changeIndex = 0}) → Ed25519Keypair
Generate a keypair from mnemonics string.