<p>I'm trying to create an extended private key so I can create multiple public addresses that can be controlled using a single master key.</p>

<p>I have a library which handles most of what I need, but I need to provide an extended private key.</p>

<p>How can I generate an extended private key? Ideally I'd like to do it from linux command line.</p>

CC BY-SA 4.0
2019-11-27T20:52:49.970Z
What do you mean by ‘controlled by a single private key’? I ask because there is a common misconception that a master priv key can be used to spend coins stored at child addresses.
chytrik
CC BY-SA 4.0
2019-11-27T20:59:23.350Z
@chytrik making a bot that needs to create unique address for user to deposit to but was hoping to use a single private key to be able to resend those funds to a master wallet after transaction.
Philip Kirkbride
CC BY-SA 4.0
2019-11-27T22:22:11.827Z
The master private key is used to derive the child private keys that will let you spend the funds. The master private key cannot be used to spend funds stored at child addresses. You will still need to use each individual key to sign transactions.
chytrik
<private-key><linux>
How to Generate an Extended Private Key from Command Line?
Philip Kirkbride
# How to Generate an Extended Private Key from Command Line?

(Asked by: username_0 on 2019-11-27)

I'm trying to create an extended private key so I can create multiple public addresses that can be controlled using a single master key.

I have a library which handles most of what I need, but I need to provide an extended private key.

How can I generate an extended private key? Ideally I'd like to do it from linux command line.

**Tags:** private-key, linux

> **Comments:**
> **username_1**: What do you mean by ‘controlled by a single private key’? I ask because there is a common misconception that a master priv key can be used to spend coins stored at child addresses.  
> **username_0**: @username_1 making a bot that needs to create unique address for user to deposit to but was hoping to use a single private key to be able to resend those funds to a master wallet after transaction.  
> **username_1**: The master private key is used to derive the child private keys that will let you spend the funds. The master private key cannot be used to spend funds stored at child addresses. You will still need to use each individual key to sign transactions.  

---

## 0 answers

