Skip to main content
Version: 3.1.0

Private Key

Child private keys can only be derived from private keys. The child can be hardened. Non-hardened keys are still useful, but need to be handled carefully to avoid security risks. For more information about the concept of a hardened child read BIP-32.

Deriving a Child Private Key

Derive HD Wallet Private Key uses an extended private key to create a child key with specified parameters. This function requires inputs as follows:

  • Key 1 : The private key used in the derivation process. Invalid and public keys will cause the operation to fail.
  • Child Type 2 : Type of child to create. This allows for the child key to be hardened if needed.
  • Child Index 3 : The number of the child. It is an index between 0 and 231-1. Hardened child keys will have their index shifted by 231 when serialized to match BIP-32 specification.

Deriving a Child Private Key

If the operation is successful, the value Derived Key 4 will hold the generated valid child private key.