<blockquote>
  <p>Question - To spend the funds how do I sign them I mean do I sign them using the TPriv key or I need to derive a private key from the TPriv key ?</p>
</blockquote>

<p>To spend the UTXO of a child address (derived from either your xpub or xpriv), you will need to use the xpriv key to derive the child private key that is related to that address. The child private key will be used to sign the transaction, the parent private key cannot sign for child UTXOs (with or without the chaincode).</p>

CC BY-SA 3.0
2018-04-05T20:23:20.123Z
in addition to @chytrik answer, you need WIF private key for that child address.
Tailer
CC BY-SA 3.0
2018-04-05T20:33:12.770Z
@Adam how does the encoding of the private key matter?
Pieter Wuille
CC BY-SA 3.0
2018-04-05T20:05:30.647Z
2018-04-05T20:05:30.647Z
chytrik
<p>I have couple of keys of path  m/0/0</p>

<p>TPriv- Extended private key (pvt key+chain code)</p>

<p>TPub- Extended public key (public key+chain code)</p>

<p>Now I generate an address of of the TPub key and revived funds </p>

<p>Question - 
To spend the funds how do I sign them I mean do I sign them using the TPriv key or I need to derive a private key from the TPriv key ? </p>

<p>Or can I remove the chain code from TPriv and then sign </p>

<transactions><signature><bip32-hd-wallets>
Extended keys and signing TX
f4r4
# Extended keys and signing TX

(Asked by: username_0 on 2018-04-05)

I have couple of keys of path m/0/0

TPriv- Extended private key (pvt key+chain code)

TPub- Extended public key (public key+chain code)

Now I generate an address of of the TPub key and revived funds

Question -
To spend the funds how do I sign them I mean do I sign them using the TPriv key or I need to derive a private key from the TPriv key ?

Or can I remove the chain code from TPriv and then sign

**Tags:** transactions, signature, bip32-hd-wallets


---

## 1 answers

### Answer by username_1 on 2018-04-05. Score: 1

> Question - To spend the funds how do I sign them I mean do I sign them using the TPriv key or I need to derive a private key from the TPriv key ?

To spend the UTXO of a child address (derived from either your xpub or xpriv), you will need to use the xpriv key to derive the child private key that is related to that address. The child private key will be used to sign the transaction, the parent private key cannot sign for child UTXOs (with or without the chaincode).

> **Comments:**
> **username_2**: in addition to @username_1 answer, you need WIF private key for that child address.  
> **username_3**: @Adam how does the encoding of the private key matter?  

---

