HDPublicKey class
Constructors
- HDPublicKey.new({required ECPublicKey publicKey, required Uint8List chaincode, required int depth, required int index, required int parentFingerprint})
- HDPublicKey.decode(String b58, [int? version])
-
Creates a HD public key from a base58 encoded representation (
b58
). May throw InvalidBase58, InvalidBase58Checksum or InvalidHDKey. Ifversion
is provided a InvalidHDKeyVersion will be thrown if the version does not match.factory
Properties
- chaincode → Uint8List
-
no setterinherited
- depth → int
-
finalinherited
- fingerprint → int
-
The integer fingerprint of the identifier
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier → Uint8List
-
The identifier hash for this key
no setterinherited
- index → int
-
finalinherited
- parentFingerprint → int
-
finalinherited
- privateKey ↔ ECPrivateKey?
-
getter/setter pairoverride-getter
- publicKey → ECPublicKey
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
derive(
int index) → HDKey -
Derives a key at
index
returning the same type of key: either public or private. Theindex
can inlcude the hardenBit to specify that it is hardened.inherited -
deriveHardened(
int index) → HDPrivateKey -
Derives a hardened key at
index
which only applies to private keys. Theindex
must not include the left-bit to specify that it is hardened.inherited -
derivePath(
String path) → HDKey -
Derives a child key in a
path
format akin to "m/15/3'/4" where the optional "m" specifies that this key is a master key and "'" specifies that an index is a hardened key.inherited -
encode(
int version) → String -
Encodes the base58 representation of this key using the
version
prefix.inherited -
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