Bitcoin Forum
May 10, 2024, 03:40:28 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Synchronous transactions  (Read 1100 times)
mda (OP)
Member
**
Offline Offline

Activity: 144
Merit: 13


View Profile
June 15, 2016, 06:12:52 AM
 #1

Alice and Bob send each 1 BTC to 2-of-2 multisig address and both transactions happen simultaneously or don't happen at all.
Would it be hard to implement?
1715312428
Hero Member
*
Offline Offline

Posts: 1715312428

View Profile Personal Message (Offline)

Ignore
1715312428
Reply with quote  #2

1715312428
Report to moderator
1715312428
Hero Member
*
Offline Offline

Posts: 1715312428

View Profile Personal Message (Offline)

Ignore
1715312428
Reply with quote  #2

1715312428
Report to moderator
BitcoinCleanup.com: Learn why Bitcoin isn't bad for the environment
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715312428
Hero Member
*
Offline Offline

Posts: 1715312428

View Profile Personal Message (Offline)

Ignore
1715312428
Reply with quote  #2

1715312428
Report to moderator
1715312428
Hero Member
*
Offline Offline

Posts: 1715312428

View Profile Personal Message (Offline)

Ignore
1715312428
Reply with quote  #2

1715312428
Report to moderator
mda (OP)
Member
**
Offline Offline

Activity: 144
Merit: 13


View Profile
June 15, 2016, 06:50:53 AM
Last edit: June 15, 2016, 08:51:52 AM by mda
 #2

This question is wrong because without it the Lightning Network is impossible and BTC market cap is a solid zero.
The correct question is can it be done already?
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4172
Merit: 8419



View Profile WWW
June 17, 2016, 02:08:18 AM
 #3

Sure.

Doing that is easy, just make a joint transaction.

(see the coinjoin thread)
mda (OP)
Member
**
Offline Offline

Activity: 144
Merit: 13


View Profile
July 15, 2016, 06:02:09 AM
 #4

Thanks for the hint.
I think this code from pybitcointools/README.txt will do the job
Code:
    > h
    [{'output': u'97f7c7d8ac85e40c255f8a763b6cd9a68f3a94d2e93e8bfa08f977b92e55465e:0', 'value': 50000, 'address': u'1CQLd3bhw4EzaURHbKCwM5YZbUQfA4ReY6'}, {'output': u'4cc806bb04f730c445c60b3e0f4f44b54769a1c196ca37d8d4002135e4abd171:1', 'value': 50000, 'address': u'1CQLd3bhw4EzaURHbKCwM5YZbUQfA4ReY6'}]
    > outs = [{'value': 90000, 'address': '16iw1MQ1sy1DtRPYw3ao1bCamoyBJtRB4t'}]
    > tx = mktx(h,outs)
    > tx2 = sign(tx,0,priv)
    > tx3 = sign(tx2,1,priv)
    > pushtx(tx3)
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!