I'm not super knowledgeable in the technical aspects of Bitcoin transactions so forgive me if this thought experiment is stupid, but I was curious if something like this is:
- at all possible
- already being done in some way
Let's say I have a UTXO that I want to send, but mining fees are high.
Myself ('Party1') and another party(ies) ('Party2') sign, but don't broadcast, a new transaction transferring ownership of the UTXO. If transferred to multiple parties, there is a contract within the transaction that specifies how much of the UTXO is distributed to each party.
Party2 wants to transfer the UTXO to Party3 with a new contract. Still no transaction has been broadcasted.
Could something like this be done? Like a contract within a contract into one transaction?
Party1can steal fromParty2by spending the funds they've transferred in another transaction effectively double spending them. So in addition to pre-signed transactions, L2's usually have some mechanism for fighting such double spending.Party2will only accept an Open Dime fromParty1if the device hasn't been tampered with, because it suggestsParty1never had access to the key that could spend the utxo on the Open Dime.