<p>a Bitcoin transaction can have between 1 and (realistically) several hundred inputs, each of which can redeem completely unrelated UTXOs. Whether or not the keys for those UTXOs are related through BIP32 or some other scheme is not relevant, and even not observable by the network (it is not possible to correlate different BIP32 keys unless you know their master key).</p>

CC BY-SA 3.0
2017-02-01T18:02:20.217Z
So in a transaction, each utxo is signed separately?
Gabriel
CC BY-SA 3.0
2017-02-01T19:21:17.350Z
That's correct.
Pieter Wuille
CC BY-SA 3.0
2017-02-02T13:23:31.763Z
In a non bip32 situation, where all utxos point to the same wallet, that looks like a terrible waste of block space.
Gabriel
CC BY-SA 3.0
2017-02-01T17:46:47.660Z
2017-02-01T19:36:05.403Z
2017-02-01T19:36:05.403Z
Pieter Wuille
<p>I want to redeem bitcoin received into several bip32 subwallets in only one transaction. Is that possible?</p>

<p>I've tried using <a href="https://github.com/richardkiss/pycoin/blob/master/COMMAND-LINE-TOOLS.md" rel="nofollow noreferrer">pycoin</a>'s <code>ku</code> utility to generate a <code>tpub</code> and a <code>wif</code> from a <code>tprv</code>. I'm using the tpub to generate the subwallets and the wif to sign the transaction, but pycoin says the signing fails.</p>

<p>Is that conceptually wrong, or am I just handling the keys in the wrong way?</p>

<bip32-hd-wallets><pycoin>
Can I spend utxos from various bip32 subwallets in only one transaction?
Gabriel
# Can I spend utxos from various bip32 subwallets in only one transaction?

(Asked by: username_0 on 2017-02-01)

I want to redeem bitcoin received into several bip32 subwallets in only one transaction. Is that possible?

I've tried using [pycoin](https://github.com/richardkiss/pycoin/blob/master/COMMAND-LINE-TOOLS.md)'s `ku` utility to generate a `tpub` and a `wif` from a `tprv`. I'm using the tpub to generate the subwallets and the wif to sign the transaction, but pycoin says the signing fails.

Is that conceptually wrong, or am I just handling the keys in the wrong way?

**Tags:** bip32-hd-wallets, pycoin


---

## 1 answers

### Answer by username_1 on 2017-02-01. Score: 2 | Accepted answer

a Bitcoin transaction can have between 1 and (realistically) several hundred inputs, each of which can redeem completely unrelated UTXOs. Whether or not the keys for those UTXOs are related through BIP32 or some other scheme is not relevant, and even not observable by the network (it is not possible to correlate different BIP32 keys unless you know their master key).

> **Comments:**
> **username_0**: So in a transaction, each utxo is signed separately?  
> **username_1**: That's correct.  
> **username_0**: In a non bip32 situation, where all utxos point to the same wallet, that looks like a terrible waste of block space.  

---

