>> (p.1)
    Author Topic: Atomic coin swapping  (Read 13384 times)
    jgarzik (OP)
    Legendary
    *
    qt
    Offline Offline

    Activity: 1596
    Merit: 1142


    View Profile
    September 22, 2012, 07:17:46 AM
    Last edit: September 22, 2012, 05:00:15 PM by jgarzik
     #1

    gmaxwell was talking about colored coins in IRC recently.  They are potentially interesting in the context of distributed bonds, which I am currently pursuing with pybond.

    Here is the problem I am trying to solve, does the crowd have an answer?

    1. Alice transfers a 1-satoshi colored coin to Bob.
    2. Bob transfers 100 BTC to Alice.  May be restricted to 1 txout, if that eases implementation details.
    3. Steps #1 and #2 happen as a logically atomic unit, all-or-none.
    4. Alice and Bob must both approve this atomic transfer of coins, with appropriate signatures.

    Is this possible within the current bitcoin system?  As far as I can see, the answer is "no" but maybe I'm missing something.

    My best guess to the answer is "possible, but requires a new SIGHASH_* type"?

    It seems like atomic coin swapping has great potential.

    Edit: thanks, crowd Smiley  See below.

    Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
    Visit bloq.com metronome.io
    Donations tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
Page 1
Viewing Page: 1