Author

Topic: Brainstorming: On chain decentralized exchange possible on Bitcoin Blockchain? (Read 516 times)

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
Like Electrum light wallets? Not like full nodes?

AFAIK it's closer to Electrum SPV

I believe some developers are into something again, with promises of on-chain scaling of a decentralized network, with low/no fees/cost to the network through "sharding". They will sell it as scaling-out, when in fact it scales the network in.

There WILL be centralization with more efficiency. No one can bend the laws of Physics.

Most likely yes, but it's different story.
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
If I run a "sharding-node", do I trust the other "sharding-nodes" of the other shard, instead of the consensus itself?

Sharding node still verify all block header belongs to another shard.

Would it be considered sharding if the miners are required to have all the blocks?

I have yet to research about mining on sharding blockchain, but blockchain which uses blockchain still have a type of node which store and verify all shard.
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
8 months on after OP, the Ethereum network has also been suffering to that thing that the Ethereans has been criticizing Bitcoin for. Their solution, sharding, is more complexity, but for small, and unsure benefit.

you mean the huge transaction fees? that's not new for ethereum. it has always had a much worse scaling issue than bitcoin. it was jut not noticeable as much because unlike bitcoin it is not under magnifying glass and of course its usage is far less than bitcoin's. but every now and then with a small surge of token scams (like the DEFI these days) it shoots up.

That's the price of wanting doing and storing everything you could on blockchain.

i don't think sharding would change anything about fees though. it would only make syncing and running a full node easier (even though more centralized).

When it's far cheaper to run sharding node, i'm sure ETH community will agree to increase block gas limit (which determine block size limit).
legendary
Activity: 2898
Merit: 1823
Like Electrum light wallets? Not like full nodes?

AFAIK it's closer to Electrum SPV


Which SPVs are not actually part of the network, actually trusts the nodes they are connected to. Are "sharded cryptocurrency networks" more open to Sybil Attacks?

I believe all the added complications, and risks, for the same benefit that can be developed in off-chain layered networks.
legendary
Activity: 2128
Merit: 1293
There is trouble abrewing
PS: In the blockchair I could not find any data which shows fees analysis. Which corner it is hiding?

sorry for late response. it is a bit hidden under their charts link that can be found at the bottom of the page. or use the link by adding the coin name and the word charts like this (/coinnamse/charts) to get it for each coin. here is the direct link for ETH fee charts:
https://blockchair.com/ethereum/charts/average-transaction-fee-eth
legendary
Activity: 2898
Merit: 1823
If I run a "sharding-node", do I trust the other "sharding-nodes" of the other shard, instead of the consensus itself?

Sharding node still verify all block header belongs to another shard.


Like Electrum light wallets? Not like full nodes?

Would it be considered sharding if the miners are required to have all the blocks?

I have yet to research about mining on sharding blockchain, but blockchain which uses blockchain still have a type of node which store and verify all shard.


I believe some developers are into something again, with promises of on-chain scaling of a decentralized network, with low/no fees/cost to the network through "sharding". They will sell it as scaling-out, when in fact it scales the network in.

There WILL be centralization with more efficiency. No one can bend the laws of Physics.
legendary
Activity: 2898
Merit: 1823
8 months on after OP, the Ethereum network has also been suffering to that thing that the Ethereans has been criticizing Bitcoin for. Their solution, sharding, is more complexity, but for small, and unsure benefit.

you mean the huge transaction fees? that's not new for ethereum. it has always had a much worse scaling issue than bitcoin. it was jut not noticeable as much because unlike bitcoin it is not under magnifying glass and of course its usage is far less than bitcoin's. but every now and then with a small surge of token scams (like the DEFI these days) it shoots up.

That's the price of wanting doing and storing everything you could on blockchain.

i don't think sharding would change anything about fees though. it would only make syncing and running a full node easier (even though more centralized).

When it's far cheaper to run sharding node, i'm sure ETH community will agree to increase block gas limit (which determine block size limit).


If I run a "sharding-node", do I trust the other "sharding-nodes" of the other shard, instead of the consensus itself?

Would it be considered sharding if the miners are required to have all the blocks?
legendary
Activity: 2898
Merit: 1823
8 months on after OP, the Ethereum network has also been suffering to that thing that the Ethereans has been criticizing Bitcoin for. Their solution, sharding, is more complexity, but for small, and unsure benefit.

you mean the huge transaction fees? that's not new for ethereum. it has always had a much worse scaling issue than bitcoin. it was jut not noticeable as much because unlike bitcoin it is not under magnifying glass and of course its usage is far less than bitcoin's. but every now and then with a small surge of token scams (like the DEFI these days) it shoots up.


Yes, plus the blockchain-bloat, making it hard to run an actual full node.

Quote

i don't think sharding would change anything about fees though. it would only make syncing and running a full node easier (even though more centralized).


I have been debating that point. It's added complexity, added risk, just for a small benefit.

Plus if the miners a required to have all the blocks, that's not sharding.
copper member
Activity: 1666
Merit: 1901
Amazon Prime Member #7
.
There is a lot you can do with Etherium, but the problem is that it is all on chain, which is really not scalable. Think of all the times bitcoin fees have spiked, and multiple that times 100 (or more) because of all the different types of things that can cause ETH fees to spike.

does not make sense to have an order book on a blockchain
former is inconstant, latter immutable
does not make sense to have an order book on a blockchain
former is inconstant, latter immutable

the order-book itself is not stored on the blockchain, there is no reason for that. it can be anywhere because there is no reason for it to even be stored. the contract or the script which is the executed order or the trade is stored on the blockchain.
good but then the exchange isn't decentralised
It is not realistic to keep every bid/ask on the blockchain. That is too many transactions, and waiting 10 minutes (on average) to submit a bid or an ask is not going to attract any users. I don't think any of the existing DEXs keep their orderbook on the blockchain, they only use the blockchain for settlement.
legendary
Activity: 2800
Merit: 2736
Farewell LEO: o_e_l_e_o
well the situation has been spiraling out of control as ETH is on a bad path. so each cycle when the scam hypes grow in number the fee situation becomes a little worse. otherwise the chart (or the one on blockchair which is better) shows this common occurrence clearly.
I never paid much attention on how ETH fees calculation works. Unlike bitcoin with ETH I have always used the suggested fees the wallet does and very few times I have used ETH so may be I will not talk much about it.

PS: In the blockchair I could not find any data which shows fees analysis. Which corner it is hiding?
legendary
Activity: 2128
Merit: 1293
There is trouble abrewing
I was looking for historical fees for ETH and it seems indeed the fees are way to high then anytime.

well the situation has been spiraling out of control as ETH is on a bad path. so each cycle when the scam hypes grow in number the fee situation becomes a little worse. otherwise the chart (or the one on blockchair which is better) shows this common occurrence clearly.
legendary
Activity: 2800
Merit: 2736
Farewell LEO: o_e_l_e_o
8 months on after OP, the Ethereum network has also been suffering to that thing that the Ethereans has been criticizing Bitcoin for. Their solution, sharding, is more complexity, but for small, and unsure benefit.

you mean the huge transaction fees? that's not new for ethereum. it has always had a much worse scaling issue than bitcoin. it was jut not noticeable as much because unlike bitcoin it is not under magnifying glass and of course its usage is far less than bitcoin's. but every now and then with a small surge of token scams (like the DEFI these days) it shoots up.
i don't think sharding would change anything about fees though. it would only make syncing and running a full node easier (even though more centralized).
I was looking for historical fees for ETH and it seems indeed the fees are way to high then anytime.


https://bitinfocharts.com/comparison/ethereum-transactionfees.html

You are right about other things like, unlike bitcoin ETH is not really in much of use so the circulation is less too.
legendary
Activity: 2128
Merit: 1293
There is trouble abrewing
8 months on after OP, the Ethereum network has also been suffering to that thing that the Ethereans has been criticizing Bitcoin for. Their solution, sharding, is more complexity, but for small, and unsure benefit.

you mean the huge transaction fees? that's not new for ethereum. it has always had a much worse scaling issue than bitcoin. it was jut not noticeable as much because unlike bitcoin it is not under magnifying glass and of course its usage is far less than bitcoin's. but every now and then with a small surge of token scams (like the DEFI these days) it shoots up.
i don't think sharding would change anything about fees though. it would only make syncing and running a full node easier (even though more centralized).
legendary
Activity: 2898
Merit: 1823
8 months on after OP, the Ethereum network has also been suffering to that thing that the Ethereans has been criticizing Bitcoin for. Their solution, sharding, is more complexity, but for small, and unsure benefit.
legendary
Activity: 3906
Merit: 6249
Decentralization Maximalist
Well there are some options already:

Atomic DEX - while not a Bitcoin-exclusive project, it uses Bitcoin Script for atomic swaps like @squatter showed them above, and an additional P2P network for order matching. In my opinion, an underrated project (I have started a thread about it here), even if it may seem questionable that they charge fees.

Omni, which was the first DEX ever and already exists since 2014, is also using pure Bitcoin technology. It can't exchange currencies on other blockchains but only Bitcoin-based Omni tokens, (like the original TetherUSD). But always take into account that "Ethereum DEXes" like Uniswap also only can exchange Ethereum-based tokens.

One very interesting aspect of Omni is OmniBOLT which is a work-in-progress solution to transfer Omni tokens via Lightning. This would be the "ultimate solution" for token transfer and exchange.

There is also Counterparty which was a bit "forgotten" lately and is basically something very similar to Omni.

And there are more obscure projects like OpenAssets (which is outdated) and PeerAssets, all based on pure Bitcoin script (even if the latter was designed for Peercoin).
legendary
Activity: 2128
Merit: 1293
There is trouble abrewing
It could be more expensive to run node for sidechain if:
1. It has bigger block size limit or lower block time
2. It uses more "expensive" cryptography, such as zero-knowledge proof
3. It's designed to store all kinds of data

true but even if it costs "a lot" to run such a node it won't be and can not be close to costing millions to run it otherwise it won't work.
besides, unlike bitcoin's blockchain that needs to store the history of all transactions, such sidechain doesn't have to store the history of all trades so it won't need to store that much data (if any since the trade itself doesn't have to be recorded in my opinion).
legendary
Activity: 2128
Merit: 1293
There is trouble abrewing
I see a big problem blocking this from being launched, and that is funding for nodes to run on whatever sidehain they make. It could be as simple as giving universities money to host their own nodes, if you need to get a lot of nodes up quickly controlled by different parties without an agenda. But who is going to spend millions to prop up a sidechain like that?

running a bitcoin full node doesn't cost anywhere near millions so why should a running a node on side chain cost that much money? besides what you are suggesting is centralization and if that is the only solution then we are better off using the existing centralized exchanges instead.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
I see a big problem blocking this from being launched, and that is funding for nodes to run on whatever sidehain they make. It could be as simple as giving universities money to host their own nodes, if you need to get a lot of nodes up quickly controlled by different parties without an agenda. But who is going to spend millions to prop up a sidechain like that?

Even LN doesn't have enough nodes running to make a full scale network (I'll probaby end up helping out running one myself if I can obtain a dedicated host), but at least they have nodes to start with, so let's piggyback on the sidechain that made the most progress.
legendary
Activity: 3472
Merit: 10611
good but then the exchange isn't decentralised

why?!! there is no centralized authority or a middle man involved. it can easily happen peer to peer and then settled on bitcoin chain.
i don't see how you see any traces of centralization in this.
legendary
Activity: 1652
Merit: 4393
Be a bank
good but then the exchange isn't decentralised
legendary
Activity: 3472
Merit: 10611
does not make sense to have an order book on a blockchain
former is inconstant, latter immutable

the order-book itself is not stored on the blockchain, there is no reason for that. it can be anywhere because there is no reason for it to even be stored. the contract or the script which is the executed order or the trade is stored on the blockchain.
legendary
Activity: 1652
Merit: 4393
Be a bank
does not make sense to have an order book on a blockchain
former is inconstant, latter immutable
legendary
Activity: 2086
Merit: 1282
Logo Designer ⛨ BSFL Division1
Defi built directly on bitcoin blockchain would be a bad idea, because even uniswap that is on ethereum have problems with huge fees and failed transactions.
That being said, I believe some people are working on second layer solution that will enable better decentralized exchange for Bitcoin.
This is better because fees can be much lower and transaction can be faster. Meanwhile, we can use Bisq exchange.

BIP-119 sure looks interesting:
https://utxos.org/
 
sr. member
Activity: 861
Merit: 423
Revisiting this thread after a long time because I stumbled upon an article. Most of you have opined here that Decentralized Exchange is not possible on Bitcoin Blockchain. But, the following article is claiming otherwise. What is your opinion?

Bitcoin DeFi May Be Unstoppable: What Does It Look Like?
legendary
Activity: 1666
Merit: 1196
STOP SNITCHIN'
Recently I used Uniswap Exchange, which appears to be a fantastic product to me. It is a simple smart contract interface for swapping ERC20 tokens. I wonder, if a similar product is possible on Bitcoin Blokchain. USDT, BSQ, RSK and some other tokens already runs on Bitcoin Blockchain. How about a decentralized asset exchange between BTC and these tokens? Is not it technically feasible?

I'm not sure about a comprehensive DEX, but Bitcoin-based atomic swaps are possible using nLocktime and shared secrets. TierNolan pointed this out years ago:

No it's not. I assume that you mean that the problem is that B's coins will remain locked until A agrees to unlock, but this is solved with locktime as described by gmaxwell, see also here.

Sounds reasonable.

A picks a random number x

A creates TX1: "Pay w BTC to if (x for H(x) known and signed by B) or (signed by A & B)"

A creates TX2: "Pay w BTC from TX1 to , locked 48 hours in the future, signed by A"

A sends TX2 to B

B signs TX2 and returns to A

1) A submits TX1 to the network

B creates TX3: "Pay v alt-coins to if (x for H(x) known and signed by A) or (signed by A & B)"

B creates TX4: "Pay v alt-coins from TX3 to , locked 24 hours in the future, signed by B"

B sends TX4 to A

A signs TX4 and sends back to B

2) B submits TX3 to the network

3) A spends TX3 giving x

4) B spends TX1 using x

This is atomic (with timeout).  If the process is halted, it can be reversed no matter when it is stopped.

Before 1: Nothing public has been broadcast, so nothing happens
Between 1 & 2: A can use refund transaction after 48 hours to get his money back
Between 2 & 3: B can get refund after 24 hours.  A has 24 more hours to get his refund
After 3: Transaction is completed by 2
- A must spend his new coin within 24 hours or B can claim the refund and keep his coins
- B must spend his new coin within 48 hours or A can claim the refund and keep his coins

For safety, both should complete the process with lots of time until the deadlines.

There are some alternative ideas for accomplishing the same thing without using locktime, like a specialized altchain:

Quote
Another proposal of cross-chain p2ptrade is to use specialized altchain with properties for efficient operation of p2ptrade from bitcoin chain. Additionally, we use only single standard bitcoin transaction which looks exactly the same as normal payment (no nlocktime, no multisig, no special script).

Assuming the altchain has actual economic value to support it, it can even serve as proxy for (relatively) efficient zero-trust p2p market between fe. BTC and LTC thanks to arbitraging market makers.

The Lightning Network can also facilitate this:

Quote from: achow101
If someone wanted to be paid in Litecoin over the Lightning Network but you only have Bitcoin channels, you can (in theory, I don't know if this is implemented) route your payment through a node that has both Bitcoin and Litecoin channels using the same HTLC secrets and it would be totally fine. The only caveat is the exchange rate between Bitcoin and Litecoin which would have to be negotiated with that node doing the bridging between Bitcoin and Litecoin.
https://bitcointalksearch.org/topic/m.48997244
sr. member
Activity: 861
Merit: 423
Recently I used Uniswap Exchange, which appears to be a fantastic product to me. It is a simple smart contract interface for swapping ERC20 tokens. I wonder, if a similar product is possible on Bitcoin Blokchain. USDT, BSQ, RSK and some other tokens already runs on Bitcoin Blockchain. How about a decentralized asset exchange between BTC and these tokens? Is not it technically feasible?
Jump to: