Derives and returns an extended account public key from the root key.
The derivation path for the account (purpose and account index).
A promise that resolves with the derived extended account public key.
Retrieves the securely stored private key.
The derivation path specifying which key to retrieve.
A promise that resolves with the private key.
Serializes the encrypted root key and its configuration for secure storage. This allows the handler's state to be saved and later restored via a deserialize function.
A promise that resolves with the encrypted and serialized key handler data.
Signs arbitrary data using a BIP32-derived key.
The hex-encoded data to be signed.
The derivation path specifying which key to use for signing.
A promise that resolves with an object containing the signature and the public key.
Signs a transaction using BIP32-derived keys.
The CBOR-encoded transaction hex string to be signed.
An array of derivation paths specifying which keys are required to sign the transaction.
A promise that resolves with the VkeyWitnessSet containing the generated signatures.
Defines the contract for a secure key handler that manages a BIP32 hierarchical deterministic (HD) root key.
Implementations of this interface are responsible for keeping the root private key secure. The key should only be decrypted for the brief duration of a cryptographic operation in the case of in-memory implementations, after which thy must be securely wiped from memory to minimize exposure.