0

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

1 Answer 1

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).

2
  • in addition to @chytrik answer, you need WIF private key for that child address.
    – Tailer
    Commented Apr 5, 2018 at 20:23
  • @Adam how does the encoding of the private key matter? Commented Apr 5, 2018 at 20:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.