Bitcoin Forum
April 18, 2024, 08:22:03 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can I spend a sub set of the outputs of a tx with a presigned lock_time tx?  (Read 420 times)
No_2 (OP)
Hero Member
*****
Offline Offline

Activity: 901
Merit: 1031


BTC: the beginning of stake-based public resources


View Profile
April 30, 2014, 02:47:33 PM
 #1

Can I sped a sub set of the outputs of an existing transaction with a presigned lock_time transaction that is valid for that transaction at a future time, but some of the outputs have already been spent.

To give an example:

Party A and Party B agree to lock up some funds as a deposit – Party A creates the deposit transaction and spends 6 bitcoins to a transaction that has outputs of 1BTC, 2BTC and 3BTC and broadcasts this to the network. This deposit transaction is then mined into a block. At the same time Party A sends Party B a signed lock_time transaction valid to redeem all three outputs from the 6BTC deposit transaction they just made. The lock_time transaction is valid at 100 blocks in the future, so if A and B never communicate again B can claim all three outputs at 100 blocks in the future.

However before Party B can collect his bitcoins, Party A then spends 2BTC output from the deposit transaction to another transaction.

Is Party B then still able to claim the remaining funds in that transaction? I.e. is each input on the lock_time transaction he holds singed separately or signed across all the inputs by Party A? Is there any way Party B can separate these out to generate a new lock_time transaction and get the funds?

Please let me know if I’ve got the above correct or misunderstood anything.
1713428523
Hero Member
*
Offline Offline

Posts: 1713428523

View Profile Personal Message (Offline)

Ignore
1713428523
Reply with quote  #2

1713428523
Report to moderator
1713428523
Hero Member
*
Offline Offline

Posts: 1713428523

View Profile Personal Message (Offline)

Ignore
1713428523
Reply with quote  #2

1713428523
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713428523
Hero Member
*
Offline Offline

Posts: 1713428523

View Profile Personal Message (Offline)

Ignore
1713428523
Reply with quote  #2

1713428523
Report to moderator
jl2012
Legendary
*
Offline Offline

Activity: 1792
Merit: 1092


View Profile
April 30, 2014, 03:03:17 PM
 #2

Without SIGHASH_ANYONECANPAY: no

With SIGHASH_ANYONECANPAY: yes

https://en.bitcoin.it/wiki/OP_CHECKSIG

Donation address: 374iXxS4BuqFHsEwwxUuH3nvJ69Y7Hqur3 (Bitcoin ONLY)
LRDGENPLYrcTRssGoZrsCT1hngaH3BVkM4 (LTC)
PGP: D3CC 1772 8600 5BB8 FF67 3294 C524 2A1A B393 6517
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!