Derives a child BIP32 private key using a specified derivation path.
This method computes a child private key by following a derivation path represented by an array of indices. Indices >= 2^31 represent hardened keys, which cannot be derived from public keys.
An array of indices specifying the derivation path.
A new Bip32PrivateKey instance for the derived key.
Derives the public key corresponding to this private key.
This method extracts the public key associated with the current private key.
The resulting Bip32PublicKey can be used for address generation, signature verification,
and other operations that do not require private key access.
A Bip32PublicKey instance corresponding to the derived public key.
The reference count retrieved by this method reflects the number of references maintained internally by libcardano-c for this native instance of the object. This is unrelated to the reference counting mechanism in JavaScript, which is managed by the JavaScript engine's garbage collector.
This method is primarily intended for diagnostic purposes.
The current reference count of the object in the WASM context.
Converts the BIP32 private key to an Ed25519 private key.
This method transforms the hierarchical deterministic (HD) private key into an Ed25519 private key. The resulting key can be used in cryptographic operations such as signing.
An instance of Ed25519PrivateKey.
StaticfromCreates a BIP32 private key from BIP39 entropy.
This method initializes a BIP32 private key using entropy derived from a BIP39 mnemonic. A password can also be provided to enhance security.
The password or passphrase as a Uint8Array.
The entropy derived from a BIP39 mnemonic as a Uint8Array.
A new Bip32PrivateKey instance.
StaticfromCreates a BIP32 private key from raw bytes.
This method allows for constructing a Bip32PrivateKey directly from its raw binary representation.
The raw byte data of the private key as a Uint8Array.
A new Bip32PrivateKey instance.
StaticfromCreates a BIP32 private key from a hexadecimal string.
This method initializes a Bip32PrivateKey using its hexadecimal representation.
A hexadecimal string representing the private key.
A new Bip32PrivateKey instance.
Represents a BIP32 hierarchical deterministic (HD) private key.
The
Bip32PrivateKeyclass encapsulates private key operations under the BIP32 standard. BIP32 defines a standard for HD wallets, enabling the derivation of an extensive tree of private keys from a single seed. These private keys can be used to generate public keys, derive addresses, and sign transactions within the Cardano ecosystem.