HDNode class Null safety

Implemented types

Constructors

HDNode({required String? privateKey, required String publicKey, required String? address, required String chainCode, required String fingerprint, required String parentFingerprint, required int index, required int depth, required Mnemonic? mnemonic, String? path})
HDNode.fromMnemonic(String mnemonic, {String? password, Wordlist? wordlist})
factory
HDNode.fromSeed(Uint8List seed)
factory

Properties

address String?
The address of this HDNode.
read / write, override
chainCode String
The chain code is used as a non-secret private key which is then used with EC-multiply to provide the ability to derive addresses without the private key of child non-hardened nodes.
final
depth int
The depth of this HDNode. This will match the number of components (less one, the m/) of the path.
final
fingerprint String
The fingerprint is meant as an index to quickly match parent and children nodes together, however collisions may occur and software should verify matching nodes.
final
hashCode int
The hash code for this object.
read-only, inherited
index int
The index of this HDNode. This will match the last component of the path.
final
mnemonic Mnemonic?
A serialized string representation of this HDNode. Not all properties are included in the serialization, such as the mnemonic and path, so serializing and deserializing (using the fromExtendedKey class method) will result in reduced information. The mnemonic of this HDNode, if known.
read / write
parentFingerprint String
The fingerprint of the parent node. See fingerprint for more details.
final
path String?
The path of this HDNode, if known. If the mnemonic is also known, this will match mnemonic.path.
read / write
privateKey String?
The private key for this HDNode.
read / write, override
publicKey String
The (compresses) public key for this HDNode.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

derivePath(String path) HDNode
Return a new HDNode which is the child of hdNode found by deriving path.
getWordList(String mnemonic) List<String>
neuter() HDNode
Return a new instance of hdNode with its private key removed but all other properties preserved. This ensures that the key can not leak the private key of itself or any derived children, but may still be used to compute the addresses of itself and any non-hardened children.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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