HdWallet class

Constructors

HdWallet({required Bip32KeyPair key})
Root constructor taking a root signing key
HdWallet.fromDewif(String dewif, String password, {String lang = 'english', int dewifCurrencyCode = DEWIF_CURRENCY_CODE_G1, int dewifVersion = DEWIF_VERSION, bool isScrypt = true})
factory
HdWallet.fromMnemonic(String mnemonic, {bool isScrypt = true})
Build the root signing key based on given mnemonic.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
key ↔ Bip32KeyPair
getter/setter pair
rootVerifyKey → Bip32VerifyKey?
return the root signing key
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

derive(int index) → Bip32KeyPair
If a parent signing key is provided, a child signing key is generated. If a parent verify key is provided and the index is NOT hardened, then a child verify key is also included. If hardened and no signingKey is provied, it returns an empty pair.
getPubkey(int derivation) String
Return the pubkey in string format for the given derivation keypair
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sign(String document, {required int derivation}) String
Provide a valid signature from given derivation keypair for any message or text document.
toString() String
A string representation of this object.
inherited
verifySign(String document, String signature, {required int derivation}) bool
Verify if the given signature is valid for the given message or text document, based on given keypair

Operators

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