<p>You can use <code>ku</code>  utility provided in <a href="https://github.com/richardkiss/pycoin/blob/master/COMMAND-LINE-TOOLS.md" rel="nofollow noreferrer">pycoin</a> library.</p>

<p>example:</p>

<pre><code>ku -s 0/0-2 xprv9xWkBDfyBXmZsA85GyWj9uYPyoQv826YAadKWMaaEosNrFBKgj2TqWuiWY3zuqxYGpHfv9cnGj5P7e8EskpzKL1Y8Gk9aX6QbryA5raK73p
</code></pre>

<p>will generate keys from index 0-2 on derivation path 0/x</p>

CC BY-SA 3.0
2017-11-23T16:40:44.347Z
2017-11-23T16:40:44.347Z
dark knight
<p><a href="https://en.bitcoin.it/wiki/Deterministic_wallet" rel="nofollow noreferrer">HD (hierarchical deterministic)</a> wallets contain master private key, from which all the private keys can be derived.</p>

<p>Is there a CLI tool that calculates the private keys out of a HD key?</p>

<private-key><pycoin>
Derive private keys from a HD key
Adam Matan
# Derive private keys from a HD key

(Asked by: username_0 on 2017-11-23)

[HD (hierarchical deterministic)](https://en.bitcoin.it/wiki/Deterministic_wallet) wallets contain master private key, from which all the private keys can be derived.

Is there a CLI tool that calculates the private keys out of a HD key?

**Tags:** private-key, pycoin


---

## 1 answers

### Answer by username_1 on 2017-11-23. Score: 2 | Accepted answer

You can use ku  utility provided in pycoin library.
example:
ku -s 0/0-2 xprv9xWkBDfyBXmZsA85GyWj9uYPyoQv826YAadKWMaaEosNrFBKgj2TqWuiWY3zuqxYGpHfv9cnGj5P7e8EskpzKL1Y8Gk9aX6QbryA5raK73p

will generate keys from index 0-2 on derivation path 0/x


---

