Ed25519Account class

An account backed by an Ed25519 key pair, providing message and transaction signing.

Note: Constructing an instance does not create the account on-chain.

Inheritance

Constructors

Ed25519Account({required Ed25519PrivateKey privateKey, AccountAddressInput? address})
Creates an Ed25519 account from a privateKey.
factory

Properties

accountAddress → AccountAddress
Account address associated with the account.
final
hashCode → int
The hash code for this object.
no setterinherited
privateKey → Ed25519PrivateKey
Private key associated with the account.
final
publicKey → Ed25519PublicKey
Public key associated with the account.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signingScheme → SigningScheme
Signing scheme used to sign transactions.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sign(HexInput message) → Ed25519Signature
Sign the given message using the account's Ed25519 private key.
override
signTransaction(AnyRawTransaction transaction) → Ed25519Signature
Signs the signing message derived from transaction.
override
signTransactionWithAuthenticator(AnyRawTransaction transaction) → AccountAuthenticatorEd25519
Signs transaction and returns an authenticator holding the Ed25519 signature and the account's public key.
override
signWithAuthenticator(HexInput message) → AccountAuthenticatorEd25519
Signs message and returns an authenticator holding the Ed25519 signature and the account's public key.
override
toString() → String
A string representation of this object.
inherited
verifySignature({required HexInput message, required Signature signature}) → bool
Verifies signature against message using the account's public key.
inherited
verifySignatureAsync({Object? aptosConfig, required HexInput message, required Signature signature, Object? options}) → Future<bool>
Verify the given message and signature with the public key. It fetches any on-chain state if needed for verification.
inherited

Operators

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

Static Methods

fromDerivationPath({required String path, required String mnemonic}) → Ed25519Account
Derives an Ed25519 account using a specified BIP44 path and mnemonic seed phrase.
override
generate() → Ed25519Account
Generates a new Ed25519 account from a randomly generated private key.
override