HDInterface class abstract

An interface for hierarchical deterministic (HD) wallets.

This interface defines the basic contract for interacting with HD wallets, allowing the creation of accounts, exporting mnemonic phrases, exporting private keys, signing messages, and more.

Inheritance
Implementers

Constructors

HDInterface()

Properties

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

Methods

addAccount(int index) Future<EthereumAddress>
Adds a new account to the HD wallet.
exportMnemonic() Future<String?>
Exports the mnemonic phrase associated with the HD wallet.
exportPrivateKey(int index) Future<String>
Exports the private key of an account from the HD wallet.
getAddress({int index = 0, dynamic bytes}) String
Returns the Hex address associated with the signer.
inherited
getEthereumAddress({int index = 0}) EthereumAddress
Retrieves the Ethereum address of an account from the HD wallet.
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.
inherited
signToEc(Uint8List hash, {int? index, String? id}) Future<MsgSignature>
Signs the provided hash and returns the result as a MsgSignature.
inherited
toString() String
A string representation of this object.
inherited

Operators

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