Bip44PublicKey class
Represents a BIP44 public key for a specific cryptocurrency coin. This class ensures that the elliptic curve type of the public key matches the coin's configuration, and provides various utility methods for working with the public key.
Constructors
- Bip44PublicKey(Bip32PublicKey pubKey, BipCoinConfig coinConf)
-
Factory constructor to create a Bip44PublicKey from a Bip32PublicKey
and a BipCoinConfig. It verifies that the elliptic curve type of the public
key matches the coin's configuration.
factory
Properties
- chainCode → Bip32ChainCode
-
Gets the chain code associated with the public key.
no setter
- coinConf → BipCoinConfig
-
The coin configuration associated with this public key.
final
-
compressed
→ List<
int> -
Gets the compressed public key bytes.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Bip32PublicKey
-
Retrieves the underlying BIP32 public key.
no setter
- pubKey → Bip32PublicKey
-
The underlying BIP32 public key.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toAddress → String
-
Generates an address for this public key, using the provided
kwargs
for additional parameters. The exact encoding method depends on the coin configuration. An exception is thrown for special cases like Cardano Shelley or Monero, which require using specific classes to generate addresses.no setter - toExtended → String
-
Gets the extended public key representation.
no setter
-
uncompressed
→ List<
int> -
Gets the uncompressed public key bytes.
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited