Author

Topic: Synchronous transactions (Read 1110 times)

mda
member
Activity: 144
Merit: 13
July 15, 2016, 01: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)
staff
Activity: 4242
Merit: 8672
June 16, 2016, 09:08:18 PM
#3
Sure.

Doing that is easy, just make a joint transaction.

(see the coinjoin thread)
mda
member
Activity: 144
Merit: 13
June 15, 2016, 01:50:53 AM
#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?
mda
member
Activity: 144
Merit: 13
June 15, 2016, 01: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?
Jump to: