HDWallet class

Pure Dart implementation of BIP-32/44 Hierarchical Deterministic (HD) wallet.

Supports deriving child keys from a master seed using standard derivation paths.

Constructors

HDWallet.fromMnemonic(List<String> mnemonic, {String passphrase = ''})
Creates an HD wallet from a BIP-39 mnemonic phrase.
factory
HDWallet.fromSeed(Uint8List seed)
Creates an HD wallet from a seed (typically from BIP-39 mnemonic).
factory

Properties

chainCode Uint8List
final
depth int
final
hashCode int
The hash code for this object.
no setterinherited
index int
final
parentFingerprint Uint8List
final
path String
final
privateKey Uint8List
final
publicKey Uint8List
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

derive(String derivationPath) HDWallet
Derives a child wallet using the specified derivation path.
deriveChild(int index) HDWallet
Derives a direct child wallet with the specified index.
getAddress() EthereumAddress
Gets the Ethereum address for this wallet.
getExtendedPrivateKey() String
Gets the extended private key (xprv) in Base58 format.
getExtendedPublicKey() String
Gets the extended public key (xpub) in Base58 format.
getPrivateKey() Uint8List
Gets the private key as bytes.
getPublicKey() Uint8List
Gets the public key as bytes (compressed format).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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