Bip32Base class abstract
An abstract base class for BIP-32 hierarchical deterministic key management.
This class provides a foundation for managing hierarchical deterministic keys according to the BIP-32 standard. It includes methods and properties for working with extended keys, deriving child keys, and conversion between public and private keys.
Constructors
-
Bip32Base({required List<
int> ? privKey, required List<int> ? pubKey, required Bip32KeyData keyData, required Bip32KeyNetVersions keyNetVer}) - Creates a BIP-32 key from provided parameters.
- Bip32Base.fromExtendedKey(String exKeyStr, [Bip32KeyNetVersions? keyNetVer])
- Creates a BIP-32 key from an extended key string.
-
Bip32Base.fromPrivateKey(List<
int> privKey, [Bip32KeyData? keyData, Bip32KeyNetVersions? keyNetVer]) - Creates a BIP-32 key from a private key.
-
Bip32Base.fromPublicKey(List<
int> pubKey, [Bip32KeyData? keyData, Bip32KeyNetVersions? keyNetVer]) - Creates a BIP-32 key from a public key.
-
Bip32Base.fromSeed(List<
int> seedBytes, [Bip32KeyNetVersions? keyNetVer]) - Creates a BIP-32 key from a seed.
Properties
- chainCode → Bip32ChainCode
-
Gets the chain code associated with this key.
no setter
- curveType → EllipticCurveTypes
-
Gets the elliptic curve type for this key.
no setter
- defaultKeyNetVersion → Bip32KeyNetVersions
-
Gets the default key network version.
no setter
- depth → Bip32Depth
-
Gets the current depth of this key.
no setter
- fingerPrint → Bip32FingerPrint
-
Get public key fingerprint.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → Bip32KeyIndex
-
Gets the current index of this key.
no setter
- isPublicDerivationSupported → bool
-
Checks if public derivation is supported for this key.
no setter
- isPublicOnly → bool
-
Checks if this key is public-only.
no setter
- keyDerivator → IBip32KeyDerivator
-
Gets the key derivator for this key.
no setter
- keyNetVersions → Bip32KeyNetVersions
-
Gets the key network versions.
no setter
- masterKeyGenerator → IBip32MstKeyGenerator
-
Gets the master key generator for this key.
no setter
- parentFingerPrint → Bip32FingerPrint
-
Gets the parent fingerprint of this key.
no setter
- privateKey → Bip32PrivateKey
-
Gets the private key of this BIP-32 key.
no setter
- publicKey → Bip32PublicKey
-
Gets the public key of this BIP-32 key.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
childKey(
Bip32KeyIndex index) → Bip32Base - Derives a child BIP-32 key from the current key.
-
convertToPublic(
) → void - Converts this BIP-32 key to a public-only key.
-
derivePath(
String path) → Bip32Base - Derives a new BIP-32 key using a derivation path.
-
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