HDWalletSigner class

Implemented types

Constructors

HDWalletSigner({required String seed})
HDWalletSigner.createWallet()
Generates a new account in the HD wallet and stores it as zeroth.
factory
HDWalletSigner.recoverAccount(String mnemonic)
Recovers an account from a mnemonic phrase and stores it in the HD wallet as zeroth.
factory

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
zerothAddress EthereumAddress
latefinal

Methods

addAccount(int index) Future<EthereumAddress>
Adds a new account to the HD wallet.
override
exportMnemonic() Future<String?>
Exports the mnemonic phrase associated with the HD wallet.
override
exportPrivateKey(int index) Future<String>
Exports the private key of an account from the HD wallet.
override
getAddress({int index = 0, dynamic bytes}) String
Returns the Hex address associated with the signer.
override
getEthereumAddress({int index = 0}) EthereumAddress
Retrieves the Ethereum address of an account from the HD wallet.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
personalSign(Uint8List hash, {int? index, String? id}) Future<Uint8List>
Signs the provided hash using a multi-signature process.
override
signToEc(Uint8List hash, {int? index, String? id}) Future<MsgSignature>
Signs the provided hash and returns the result as a MsgSignature.
override
toString() String
A string representation of this object.
inherited

Operators

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