HDNode class

Hierarchically Deterministic node, which can be used to create a HD wallet

Constructors

HDNode(ECPair _keyPair, Uint8List _chainCode)
HDNode.fromSeed(Uint8List seed, [ bool testnet = false ])
Creates an HDNode from seed. If testnet is not defined, mainnet is used
factory
HDNode.fromXPriv(String xPriv)
Creates HDNode from extended private key
factory
HDNode.fromXPub(String xPub)
Creates HDNode from extended public key
factory

Properties

depth ↔ int
read / write
fingerprint → Uint8List
read-only
identifier → Uint8List
read-only
index ↔ int
read / write
keyPair → dynamic
Returns the node's public-private key pair as an instance of ECPair
read-only
parentFingerprint ↔ int
read / write
privateKey → String
read-only
publicKey → String
read-only
publicKeyList → Uint8List
read-only
rawPrivateKey → dynamic
read-only
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

derive(int index) HDNode
Derives a new HDNode from this node based on index
derivePath(String path) HDNode
Derives a new HDNode from this instance based on the path
toCashAddress() → String
Returns HDNode's address in cashAddr format
toLegacyAddress() → String
Returns HDNode's address in legacy format
toXPriv() → String
Returns HDNode's extended private key
toXPub() → String
Returns HDNode's extended public key
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited

Constants

HIGHEST_BIT → const int
0x80000000
UINT31_MAX → const int
2147483647
UINT32_MAX → const int
4294967295