# HdKey

Utility functions for generating and working with [BIP-32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki) HD Wallets.

:::info
The `HdKey` module is a friendly wrapper over [`@scure/bip32`](https://github.com/paulmillr/scure-bip32), an **audited** implementation of [BIP-32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki) HD Wallets.
:::

## Functions

| Name                | Description                         |
| ------------------- | ----------------------------------- |
| [`HdKey.fromExtendedKey`](/api/HdKey/fromExtendedKey) | Creates a HD Key from an extended private key. |
| [`HdKey.fromJson`](/api/HdKey/fromJson) | Creates a HD Key from a JSON object containing an extended private key (`xpriv`). |
| [`HdKey.fromSeed`](/api/HdKey/fromSeed) | Creates a HD Key from a master seed. |
| [`HdKey.path`](/api/HdKey/path) | Creates an Ethereum-based BIP-44 HD path. |

## Types

| Name                | Description                         |
| ------------------- | ----------------------------------- |
| [`HdKey.HdKey`](/api/HdKey/types#hdkeyhdkey) | Root type for a Hierarchical Deterministic (HD) Key. |
