Bip44PrivateKey class

Represents a BIP44 private key for a specific cryptocurrency coin. This class ensures that the elliptic curve type of the private key matches the coin's configuration, and provides various utility methods for working with the private key.

Constructors

Bip44PrivateKey(Bip32PrivateKey privKey, BipCoinConfig coinConf)
Factory constructor to create a Bip44PrivateKey from a Bip32PrivateKey and a BipCoinConfig. It verifies that the elliptic curve type of the private key matches the coin's configuration.
factory

Properties

chainCode Bip32ChainCode
Gets the chain code associated with the private key.
no setter
coinConf BipCoinConfig
The coin configuration associated with this private key.
final
hashCode int
The hash code for this object.
no setterinherited
key Bip32PrivateKey
Retrieves the underlying BIP32 private key.
no setter
privKey Bip32PrivateKey
The underlying BIP32 private key.
final
publicKey Bip44PublicKey
Gets the corresponding public key derived from this private key.
no setter
raw List<int>
Gets the raw private key bytes.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toExtended String
Gets the extended private key representation.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toWif({PubKeyModes pubKeyMode = PubKeyModes.compressed}) String
Converts the private key to Wallet Import Format (WIF) with the specified pubKeyMode. It uses the coin's configuration to determine the network version. If the network version is not available, an empty string is returned.

Operators

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