There's been quite a few suggestions about decentralized exchanges
but they've generally petered out into either "Ripple will solve all
our problems (one day)" or "a decentralized exchange is impossible".
Here's what I believe is a fairly novel (but perhaps workable) idea
for how a decentralized exchange might work technically ...
Our decentralized exchange is a P2P system like bitcoin. There is
no central authority required.
It has a bitcoin-style block chain consisting of OrderBookBlocks.
Like bitcoin, proof-of-work is used to ensure everyone agrees on
the contents of the OrderBook block chain.
Each OrderBookBlock in the chain represents a snapshot of the "order book" -
that is, a list of the open Orders waiting to be matched on the exchange.
An Order in an OrderBookBlock would look something like this:
I want to BUY 5.0 BTC for USD at a price of 120.00 USD/BTC or better.
I enclose proof that I have 600 USD pledged for this order with
the "ClearingHouse"
www.super-clearing.com - this in the form of
a "Pledge" signed with the ClearingHouse's private key.
I am willing to accept Pledges for bitcoins issued by the
ClearingHouse
www.super-clearing.com (whose public key is ...),
and also by
www.amazing-clearing.com (whose public key is ...).
Once an OrderBookBlock is complete, an agreed deterministic
algorithm can be used (by anyone) to determine which Orders
matched with which Orders. An Order can only match another
Order if its Pledge can be verified with one of the ClearingHouse
public keys listed in the other Order.
The traders can then collect their bitcoins or fiat from the
Clearing Houses, using the OrderBookBlock as proof that they
are entitled to the pledged funds.
Thoughts? Obviously there would be lots of details to be worked
out (fees for OrderBookBlock miners, protocols for orders and
pledges, a fair matching algorithm, ...).