Bitcoin Forum
May 07, 2024, 05:04:29 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  

Warning: Moderators do not remove likely scams. You must use your own brain: caveat emptor. Watch out for Ponzi schemes. Do not invest more than you can afford to lose.

Pages: [1]
  Print  
Author Topic: How Can We Create a Decentralized Exchange?  (Read 940 times)
Vigil (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


View Profile
September 23, 2013, 12:54:20 PM
Last edit: September 23, 2013, 01:48:30 PM by Vigil
 #1

With the announcement of the closure of BTC-T over potential legal fears I began to wonder why it would not be possible to create a decentralized exchange, possibly even placing it on the .bit or .onion DNS. Anyway, is this a possibility and what would be the difficulties and limitations associated with this?

One downside that I thought of could be the speed of buys/sells due to the potential for "double-spending".
1715058269
Hero Member
*
Offline Offline

Posts: 1715058269

View Profile Personal Message (Offline)

Ignore
1715058269
Reply with quote  #2

1715058269
Report to moderator
1715058269
Hero Member
*
Offline Offline

Posts: 1715058269

View Profile Personal Message (Offline)

Ignore
1715058269
Reply with quote  #2

1715058269
Report to moderator
1715058269
Hero Member
*
Offline Offline

Posts: 1715058269

View Profile Personal Message (Offline)

Ignore
1715058269
Reply with quote  #2

1715058269
Report to moderator
In order to achieve higher forum ranks, you need both activity points and merit points.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715058269
Hero Member
*
Offline Offline

Posts: 1715058269

View Profile Personal Message (Offline)

Ignore
1715058269
Reply with quote  #2

1715058269
Report to moderator
1715058269
Hero Member
*
Offline Offline

Posts: 1715058269

View Profile Personal Message (Offline)

Ignore
1715058269
Reply with quote  #2

1715058269
Report to moderator
drawingthesun
Legendary
*
Offline Offline

Activity: 1176
Merit: 1015


View Profile
September 23, 2013, 12:57:55 PM
 #2

With the announcement of the closure of BTC-T over potential legal fears I began to wonder why it would not be possible to create a decentralized exchange, possibly even placing it on the .bit or .onion DNS. Anyway, is this a possibility and what would be the difficulties and limitations associated with this?

First problem is trust.

Is there any exchange idea where the only person you have to trust is the security owner/manager of the security you are buying? If an exchange can be trustless for the system itself and the only failure point is the securities (which will never be trustless by nature) I think that would be a good idea.

But alas, I can't think of a way that could happen.
canth
Legendary
*
Offline Offline

Activity: 1442
Merit: 1001



View Profile
September 23, 2013, 01:01:44 PM
 #3

what would be the difficulties and limitations associated with this?
Trust, and TOR is slow.
Also you seem to confuse what is .onion - it's not only DNS, it's completely hidden. .bit is simply a domain name that can't be seized.

Or easily accessed by the 99% of the world that doesn't run the chrome/firefox plugin. Smiley It's just obscuring a website, not hiding it or preventing seizure.

Vigil (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


View Profile
September 23, 2013, 01:07:10 PM
 #4

OK then, forget .onion. Lets just assume .bit. Even though it is difficult to access, obviously, when people hear about the exchange they are going to find an explanation on how to access it. I don't see that as a huge problem - any more than downloading a wallet and reading some instruction on h9ow to transact BTC. How can the transaction speed problem be dealt with? or is this even a huge deal?

I think it is already a mistake that the various Crypto exchanges aren't utilizing .bit.
Vigil (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


View Profile
September 23, 2013, 01:17:02 PM
 #5

Actually, forget about the .bit. The .bit will not allow the owners to be anonymous.
And .bit would not have any speed issue, you're still on the normal Internet.

OK... but I was mainly speaking to the speed of the transactions (i.e., buys/sells) and their confirmations.
drawingthesun
Legendary
*
Offline Offline

Activity: 1176
Merit: 1015


View Profile
September 23, 2013, 01:17:43 PM
 #6

What about these coloured coin ideas? Can they be used as shares for decentralized exchanges?
Ytterbium
Full Member
***
Offline Offline

Activity: 238
Merit: 100



View Profile WWW
September 23, 2013, 01:18:14 PM
 #7

I was thinking about this the other day, it could be done on the blockchain pretty simply.

Suppose you have user A and user B.  A owns the stock, and B wants to buy it.

A transaction could work like this:

1) B sends A a small transaction, say for 0.001Btc, (and including mining fees) with a randomly generated token, as well as a request for an amount of stock and a price in the script section of the transaction.

2) If A decides to sell or transfer - they send another message back to B basically saying that they agree.

3) B sends A the bitcoins to buy the stock.

4) The asset issuer sees the transaction on the blockchain, and changes the bitcoin address associated with their transaction and updates their internal database of who owns what shares.

Optionally, you could have the issuer send a notification to user B confirming the order.

The nice thing about this system is that it would work entirely with the existing bitcoin protocol.   The only thing needed would be a tool to configure the correct script to include in the transaction - and these wouldn't need to be 'live' scripts, just scripts containing information that the issuer would look at.

Of course, this would be slow . The primary use for a technology like this would be to transfer shares between exchanges.  It would be easy for people to setup exchange sites that would allow quick transfers of shares for fast trading, or people who want to buy and hold could keep their shares in their own wallets.

Obviously I know there are other systems out there, like OpenTransactions and so on. But this would have the benefit of working with bitcoin so people who already understand bitcoin will understand exactly how this works and will know it's reliable.

Plus, the people who make money off of this will be bitcoin miners.  Which would be nice for the miners Smiley

Ytterbium
Full Member
***
Offline Offline

Activity: 238
Merit: 100



View Profile WWW
September 23, 2013, 01:21:08 PM
 #8

What about these coloured coin ideas? Can they be used as shares for decentralized exchanges?

They could be, they could serve as tokens for shares.   i.e. 0.00001btc could represent one share. The problem is you wouldn't have a two way transaction - if you pay first, you have to trust that the person will return the coin.  If you send the shares first you have to trust the other person will pay.  It might be possible to configure it correctly with the scripts, but then you'd need to be able to write scripts that know about coin 'color'.  Which I'm not sure is yet supported.  In fact, I'm not even sure what scripting features are currently supported.

My idea would only need normal scripts with data included, that the asset issuer would look for on the blockchain.

drawingthesun
Legendary
*
Offline Offline

Activity: 1176
Merit: 1015


View Profile
September 23, 2013, 01:24:37 PM
 #9

What about these coloured coin ideas? Can they be used as shares for decentralized exchanges?

They could be, they could serve as tokens for shares.   i.e. 0.00001btc could represent one share. The problem is you wouldn't have a two way transaction - if you pay first, you have to trust that the person will return the coin.  If you send the shares first you have to trust the other person will pay.  It might be possible to configure it correctly with the scripts, but then you'd need to be able to write scripts that know about coin 'color'.  Which I'm not sure is yet supported.  In fact, I'm not even sure what scripting features are currently supported.

My idea would only need normal scripts with data included, that the asset issuer would look for on the blockchain.

Has anyone considered maybe using one of the secure alternative coins (the only one I can think of is Litecoin, every other one is venerable)

Instead of bloating our blockchain, use Litecoin as a coloured coin system.
Vigil (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


View Profile
September 23, 2013, 01:30:11 PM
 #10

I was thinking about this the other day, it could be done on the blockchain pretty simply.
....
....
....
Of course, this would be slow . The primary use for a technology like this would be to transfer shares between exchanges.  It would be easy for people to setup exchange sites that would allow quick transfers of shares for fast trading, or people who want to buy and hold could keep their shares in their own wallets.
....
....
Plus, the people who make money off of this will be bitcoin miners.  Which would be nice for the miners Smiley
So a huge question here is: Is transaction rate an issue? What is the extent of influence of the time-rate of transactions on an exchange? Are faster or slower time-rates better or is there a middle ground?

Obviously, bots can trade much more quickly than a human can manually. Would slower exchange rates be more advantageous to manual trades? Would this dampen the severity of panics?

Lots of questions here.


I am not familiar enough with colored coins at the moment to comment on this aspect.
Ytterbium
Full Member
***
Offline Offline

Activity: 238
Merit: 100



View Profile WWW
September 23, 2013, 01:41:23 PM
 #11

What about these coloured coin ideas? Can they be used as shares for decentralized exchanges?

They could be, they could serve as tokens for shares.   i.e. 0.00001btc could represent one share. The problem is you wouldn't have a two way transaction - if you pay first, you have to trust that the person will return the coin.  If you send the shares first you have to trust the other person will pay.  It might be possible to configure it correctly with the scripts, but then you'd need to be able to write scripts that know about coin 'color'.  Which I'm not sure is yet supported.  In fact, I'm not even sure what scripting features are currently supported.

My idea would only need normal scripts with data included, that the asset issuer would look for on the blockchain.

Has anyone considered maybe using one of the secure alternative coins (the only one I can think of is Litecoin, every other one is venerable)

Instead of bloating our blockchain, use Litecoin as a coloured coin system.

"Our blockchain" is already bloated with stuff like shatoshi dice.  And these transactions would include mining fees, so that would be helpful.  And like I said, just using colored coins doesn't guarantee that the shares will actually be paid for. Since I could send a colored coin and then not get payment - the other person would have the colored coin and I'd be boned.

Other then that, my proposed system could be implemented just as easily with litecoin as bitcoin.   I think mainly it would be used to move shares between exchanges as well as person to person OTC trades.   

With my system, though you could still have an "exchange" where people just post bids and asks along with their addresses, and then remove them when they're filled.  The exchange wouldn't actually need to hold any BTC or shares, it would just be like a message board.  Or you could write an application that used an IRC channel to post trades, as bitcoin originally did.

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!