ExtendedPrivateKey class
An extended private key as defined by the BIP32 specification.
In the lingo of the spec this is a (k, c)
.
This can be used to generate a extended public key or further child keys.
Note that the spec talks about a 'neutered' key, this is the public key
associated with a private key.
- Inheritance
-
- Object
- ExtendedKey
- ExtendedPrivateKey
Constructors
- ExtendedPrivateKey({required BigInt key, required Uint8List version, required int depth, required int childNumber, required Uint8List chainCode, required Uint8List parentFingerprint})
- ExtendedPrivateKey.deserialize(Uint8List input)
-
factory
-
ExtendedPrivateKey.master(Uint8List seed, List<
int> version) -
factory
-
ExtendedPrivateKey.masterHex(String h, List<
int> version) -
factory
Properties
- chainCode → Uint8List
-
32 bytes
finalinherited
- childNumber → int
-
finalinherited
- depth → int
-
finalinherited
- fingerprint → Uint8List
-
Returns the first 4 bytes of the hash160 compressed public key.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → BigInt
-
final
- parentFingerprint → Uint8List
-
4 bytes
finalinherited
- publicKey → ExtendedPublicKey
-
Returns the public key assocated with the extended key.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → Uint8List
-
4 bytes
finalinherited
Methods
-
derive(
int childNumber) → ExtendedPrivateKey -
override
-
forPath(
String path) → ExtendedKey -
Derives a key based on a path.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns the string representation of this extended key. This can be
written to disk for future deserializion.
inherited
-
verifyChecksum(
Uint8List externalChecksum) → bool -
Used to verify deserialized keys.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited