Ed25519HDKeyPair class
Signs solana transactions using the ed25519 elliptic curve
Properties
- address → String
-
no setter
- hasBeenDestroyed → bool
-
Whether destroy has been called.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- publicKey → Ed25519HDPublicKey
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
destroy(
) → void -
Overwrites sensitive parts of the private key data with zeroes and
prevents the private key from being used anymore.
inherited
-
extract(
) → Future< Ed25519HDKeyPairData> - Reads the private key into memory.
-
extractPublicKey(
) → Future< Ed25519HDPublicKey> - Reads the public key.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sign(
Iterable< int> data) → Future<Signature> -
Returns a Future that resolves to the result of signing
data
with the private key held internally by a given instance. -
signMessage(
{required Message message, required String recentBlockhash}) → Future< SignedTx> - Sign a solana program message
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMnemonic(
String mnemonic, {int? account, int? change}) → Future< Ed25519HDKeyPair> -
Creates and initializes the
account
th SolanaWallet and thechange
th account for the given bip39mnemonic
string of 12 words. -
fromPrivateKeyBytes(
{required List< int> privateKey}) → Future<Ed25519HDKeyPair> -
fromSeedWithHdPath(
{required List< int> seed, required String hdPath}) → Future<Ed25519HDKeyPair> -
Construct a new
Ed25519HDKeyPair
from aseed
and a derivation pathhdPath
. -
getHDPath(
int? account, int? change) → String -
Build a derivation path with
account
andchange
-
random(
) → Future< Ed25519HDKeyPair> -
Generate a new random
Ed25519HDKeyPair