Pages:
Author

Topic: Could the lightning network solve the block size problem? - page 2. (Read 3870 times)

legendary
Activity: 1386
Merit: 1009
Then the question arises: If institutions still need to use the traditional way of clearing, then why do they use LN at all? They can just open an account at each other like how it is done between banks today
Because LN provides the way of doing so trustlessly -- one cannot steal funds, and in case of uncooperative behavior the channel is resolved on the blockchain.

I still don't really understand how a channel works under dispute, e.g. both party claim different truth. I think that is not possible without a judge-like third party involved

And the traditional approach is also trustless: Bitpay have a 1000 btc account at Coinbase, Coinbase have a 1000 btc account at Bitpay, if Bitpay run away, his account at Coinbase will belong to Coinbase, vice versa
As far as I'm aware, OP_CHECKLOCKTIMEVERIFY is used to ensure that only the most recent tx is valid.

In case of traditional approach, it's not trustless. Imagine that Alice on BitPay transacts 100 BTC to Bob on Coinbase. BitPay deducts Alice's balance by 100 BTC and deducts 100 BTC from Coinbase's account with it. Now Coinbase credits Bob by 100 BTC. Effectively, it means that Coinbase is being owed 100 BTC by BitPay, which is supposed to clear at the end of the day. But if BitPay runs away with money, Coinbase is short 100 BTC!
legendary
Activity: 1222
Merit: 1016
Live and Let Live
I still don't really understand how a channel works under dispute, e.g. both party claim different truth. I think that is not possible without a judge-like third party involved

And the traditional approach is also trustless: Bitpay have a 1000 btc account at Coinbase, Coinbase have a 1000 btc account at Bitpay, if Bitpay run away, his account at Coinbase will belong to Coinbase, vice versa

LN are no more of a learning curve than what Bitcoin was 4 years ago.

In the case of a dispute, then the most resent tx is sent (with a big fee) to the Bitcoin network. LN work by constantly trading would-be-valid Bitcoin transactions, these transactions never need to go on the Bitcoin network unless one of the parties doesn't respond.

In the case that one of the parties doesn't respond, then after a timeout, the latest Bitcoin tx is released on the network, spending both the anchors, and thus closing the channel. -  Everything was agreed upon up-to that point, so very little to Bitcoin was lost (maybe a few cents in fees).

Think about it: it works in the opposite way to how things work atm:

1. You go to the cafe, and buy a coffee with Bitcoin.
2. The cafe gets a Bitcoin TX, and has to wait for a block for it to be confimed.
3. Everything is settled after the tx is in the block chain. (about 10 min or more).

(with lightning):
1. You go to the cafe, and buy a coffee with LN.
2. You update the anchor TX to the cafe, and send the updated TX to the cafe. (instant).
3. No need for settlement since you come in every day.

- See in the general case, nothing ever touches the blockchain. - there is no 'confirmation times'

- Only in the case where there is disagreement dose the 'confirmation time' matter - only to resolve things back to the 'last known good state'.

- It isn't possible to double-spend a LN transaction, since the lock time is longer than the time for the Cafe to release the last know tx.

- if the Cafe goes out of business, then you can get your Bitcoin back, maybe after 6 weeks.  But you only put 20$ at a time, so this doesn't bother you so much.
legendary
Activity: 1988
Merit: 1012
Beyond Imagination
Then the question arises: If institutions still need to use the traditional way of clearing, then why do they use LN at all? They can just open an account at each other like how it is done between banks today
Because LN provides the way of doing so trustlessly -- one cannot steal funds, and in case of uncooperative behavior the channel is resolved on the blockchain.

I still don't really understand how a channel works under dispute, e.g. both party claim different truth. I think that is not possible without a judge-like third party involved

And the traditional approach is also trustless: Bitpay have a 1000 btc account at Coinbase, Coinbase have a 1000 btc account at Bitpay, if Bitpay run away, his account at Coinbase will belong to Coinbase, vice versa
legendary
Activity: 1386
Merit: 1009
1. Increase the blocksize by a "decent" amount to accommodate transaction volume by changing ONE LINE OF CODE.

OR

2. Create "the lightning network" to accommodate transaction volume by creating an entirely new system to piggy back on top of bitcoin by adding THOUSANDS OF LINES OF CODE.

I'd say both Smiley

The lightning network is a great invention.  It supports low-overhead nano-payments with near instant confirmation times that are fully backed by bitcoins.  It has also a few disadvantages:

  • If your hub is down, you can't send or receive payments.  You either need to wait until your hub is up again or receive the bitcoins by the pre-signed transactions, which takes several days.
  • Hubs may censor your transactions.  Sure, you can always choose another hub or use bitcoin directly.
  • You need to establish a payment channel on the blockchain beforehand.  This is a locked coin on the blockchain that contains enough funds to cover your funds that you have at the hub.  The hub must fund it with his own coins to guarantee for the maximum balance that you may receive.  So it is quite capital intensive to run a big hub.  Not only does the hub not get the funds that the customer put there (which is a good thing) but the hub also has to cover for the maximum that its customers may put in their accounts without requiring a new on-chain transaction.
  • The security of the lightning network relies on the fact that nobody can spam the blockchain to prevent the confirmation of a fixed fee transaction for a few days.  Do you think this is possible with the current block size?
  • If you don't constantly watch the blockchain, your hub may cheat you and steal your coins after a few days.
  • There is no implementation, yet.

We need a larger block size anyway.  The lightning network may help to reduce the current growth, but the size of the blocks have to grow.  Also we should at least kick the can to ensure that the current growth can continue short term until we know the lightning network works and is accepted by the community.   And if we keep the block size small to get fees of 20 $ per on-chain transaction (like some small block proponents want), we would basically prevent that people can avoid LN because of censoring or other reasons.

Fair points, I like it. To be honest, I doubt Bitcoin can bear $20 fees even with LN, as LN still depends on the blockchain. I'm also not sure why $20? E.g. if we remove subsidy now, it will require only ( Cheesy) $2.5 fee per tx in order to keep the dollar reward per block steady. Of course, assuming other things being equal Roll Eyes

IMO the most realistic scenario is that we raise the limit in 2016, and it buys is time to explore all options (be it LN or some kind of fliexible blocksize limit et cetera).
legendary
Activity: 1386
Merit: 1009
Then the question arises: If institutions still need to use the traditional way of clearing, then why do they use LN at all? They can just open an account at each other like how it is done between banks today
Because LN provides the way of doing so trustlessly -- one cannot steal funds, and in case of uncooperative behavior the channel is resolved on the blockchain.
full member
Activity: 217
Merit: 259
1. Increase the blocksize by a "decent" amount to accommodate transaction volume by changing ONE LINE OF CODE.

OR

2. Create "the lightning network" to accommodate transaction volume by creating an entirely new system to piggy back on top of bitcoin by adding THOUSANDS OF LINES OF CODE.

I'd say both Smiley

The lightning network is a great invention.  It supports low-overhead nano-payments with near instant confirmation times that are fully backed by bitcoins.  It has also a few disadvantages:

  • If your hub is down, you can't send or receive payments.  You either need to wait until your hub is up again or receive the bitcoins by the pre-signed transactions, which takes several days.
  • Hubs may censor your transactions.  Sure, you can always choose another hub or use bitcoin directly.
  • You need to establish a payment channel on the blockchain beforehand.  This is a locked coin on the blockchain that contains enough funds to cover your funds that you have at the hub.  The hub must fund it with his own coins to guarantee for the maximum balance that you may receive.  So it is quite capital intensive to run a big hub.  Not only does the hub not get the funds that the customer put there (which is a good thing) but the hub also has to cover for the maximum that its customers may put in their accounts without requiring a new on-chain transaction.
  • The security of the lightning network relies on the fact that nobody can spam the blockchain to prevent the confirmation of a fixed fee transaction for a few days.  Do you think this is possible with the current block size?
  • If you don't constantly watch the blockchain, your hub may cheat you and steal your coins after a few days.
  • There is no implementation, yet.

We need a larger block size anyway.  The lightning network may help to reduce the current growth, but the size of the blocks have to grow.  Also we should at least kick the can to ensure that the current growth can continue short term until we know the lightning network works and is accepted by the community.   And if we keep the block size small to get fees of 20 $ per on-chain transaction (like some small block proponents want), we would basically prevent that people can avoid LN because of censoring or other reasons.
legendary
Activity: 3430
Merit: 3080
I watched the presentation on the lightning network and if it allows regular payments along with the option for this side enhancement then it could help a lot with the block size problem.

The lightning network basically allows people to set up payment nodes to run transactions which can be as many transactions as you want in a certain amount of time without touching the blockchain. At the end of the time period the final balance of the transaction is posted to the blockchain. The people running the nodes have no way to interfere with the transactions and it allows for more anonymity.

I am cautiously optimistic about it.

https://www.youtube.com/watch?v=-aI4inWxBwk

HMM

1. Increase the blocksize by a "decent" amount to accommodate transaction volume by changing ONE LINE OF CODE.

OR

2. Create "the lightning network" to accommodate transaction volume by creating an entirely new system to piggy back on top of bitcoin by adding THOUSANDS OF LINES OF CODE.




Answer = 1  Grin

You got it in 1 (well, two really).


BIP101 is the most crude way of "solving" the issue, other than just deleting that one line of code completely, of course.



Sadly, you will also "solve" the decentralisation "problem" at the same time. Please spare us these armchair software engineering decisions, you are either incapable of understanding the issue, or willfully ignorant of the consequences.

The (technical) debate has long since moved on; no one except a bunch of shills and ignorants are trying to offer Hearn and Andresen either as the new team or their hijack-as-a-technical-proposal as the new software.


Give it up, the Bitcoin userbase doesn't want to be constantly harassed by mindless acolytes and sociopathic pushers. XT and BIP101 threads are nearly gone, mostly people are having more productive discussions about totally different topics, scaling or not.

And if you've got a better idea than the lightning network to scale transaction rates, let's hear it (no, not BIP101....)
legendary
Activity: 2674
Merit: 2970
Terminated.
The risk comes from the centralized organization, not LN in particular. If each LN payment channel is totally independent from others, then the fail of one channel would only affect two institutions. However if many channels are chained together and many channel carries third party payments, then if one of the main channel failed (for example hacking of one of the private key in Bitpay), then all the transactions are stopped due to the chain is broken
You were talking about a systematic failure, which this could not cause. Unless everyone on the planet was transacting through Bitpay, this can not cause big problems. Transactions can't be "stopped". Transactions on LN are near instant and get confirmed in a similar matter. If there were XXX numbers of people transacting through Bitpay, and Bitpay gets shut down or something, then they would just need to find an alternative over which they will transact (unless they decided to make direct payment channels to each other).

HMM
1. Increase the blocksize by a "decent" amount to accommodate transaction volume by changing ONE LINE OF CODE.
OR
2. Create "the lightning network" to accommodate transaction volume by creating an entirely new system to piggy back on top of bitcoin by adding THOUSANDS OF LINES OF CODE.
Answer = 1  Grin
This is not correct. Even if they do increase it, it will not be via changing a single line of code. Besides, the amount of TPS that LN provides is not even measurable to what a increase in block size would give us.

Quote
If all Bitcoin transactions were on the blockchain, to enable 7 billion people to make two transactions per day, it would require 24GB blocks every ten minutes at best (presuming 250 bytes per transaction and 144 blocks per day).
If all Bitcoin transactions were conducted inside a network of micropayment channels, to enable 7 billion people to make two channels per year with unlimited transactions inside the channel, it would require 133 MB blocks (presuming 500 bytes per transaction and 52560 blocks per year).
Note: the first case has 250 bytes per transaction, and the second 500.
Q7
sr. member
Activity: 448
Merit: 250
In a way it works the same like what the exchangers are doing daily. Deposting bitcoin into an account created and given by the exchanger, you deposit the amount and whatever happens next took place within their own accounting ledger.
legendary
Activity: 1988
Merit: 1012
Beyond Imagination
True, LN seems to be very similar to how banks and institutions work in a closed loop. However, in legacy financial system, one weak link on the chain might trigger a systematic failure like Lehman brother's case, because the whole system have very little real money in circulation. If LN chains are widely applied, it will also have such kind of risk, and without central bank bailout
Not sure, what kind of systemic risk are you talking about? If a link fails, one simply has to wait until contract expiration. I might've missed something.


Not really sure, but I guess the LN nodes might be practicing FRB by then, and the failure of one nodes will trigger a large scale of withdraw to blockchain from every nodes customer, thus collapsing them all. How to make sure an exchange does not do FRB? I suppose most of them do today

If they are in fact using Fractional reserve then perhaps you do have a point.

Fractional reserve banking is the equivalent of not being solvent.

SO funny how banks are legally able to operate while being insolvent. Cheesy

FRB is a fact, it happens on every centralized financial institution, simply because most of the funds are not moving: Suppose that a web wallet provider have 1000 customer, and each customer constantly maintain 1 bitcoin buffer in his web wallet, the total amount of coins in web wallet provider would be 1000 bitcoins. Those coins never get less as long as the customer base does not change, then it gives web wallet provider an incentive to lend out those coins to earn some interest

Of course bitcoin lending are extremely risky, so today those institutions just throw those coins into a cold storage. But when the market matures, they can essentially lend out most of those coins without causing too much trouble

Some of the exchanges like btcchina provide others transparent audit of its customer fund database and its cold storage, to prove that they do not do FRB, but the liquidity condition is usually a guarded secret for most of the institutions. And from risk point of view, a 50% reserve ratio can be regarded as extremely safe
legendary
Activity: 1988
Merit: 1012
Beyond Imagination
Conducting off the blockchain transaction will sure put more pressure on centralization But I'm just wondering if that will involve another ledger to be created since i wonder how are they going to record and capture all these transactions before broadcast it to the blockchain.

I also have this question

Suppose that there are 2000 transactions happened in a payment channel during a day, how could these transactions hit the payment channel and be cleared every 24 hours before the final settlement are written into blockchain?

In legacy financial system, Bitpay and Coinbase would need to keep and update a common list of all their customers' address, and credit/debit each other when a payment between their customer happens. At the end of day, all the to/from payment cancel each other and the net result is written into blockchain

It seems this list of all the customers would need to be maintained outside of blockchain, and the blockchain is just used as a final settlement mechanism

Then the question arises: If institutions still need to use the traditional way of clearing, then why do they use LN at all? They can just open an account at each other like how it is done between banks today
legendary
Activity: 2492
Merit: 1473
LEALANA Bitcoin Grim Reaper
True, LN seems to be very similar to how banks and institutions work in a closed loop. However, in legacy financial system, one weak link on the chain might trigger a systematic failure like Lehman brother's case, because the whole system have very little real money in circulation. If LN chains are widely applied, it will also have such kind of risk, and without central bank bailout
Not sure, what kind of systemic risk are you talking about? If a link fails, one simply has to wait until contract expiration. I might've missed something.


Not really sure, but I guess the LN nodes might be practicing FRB by then, and the failure of one nodes will trigger a large scale of withdraw to blockchain from every nodes customer, thus collapsing them all. How to make sure an exchange does not do FRB? I suppose most of them do today

If they are in fact using Fractional reserve then perhaps you do have a point.

Fractional reserve banking is the equivalent of not being solvent.

SO funny how banks are legally able to operate while being insolvent. Cheesy
legendary
Activity: 2492
Merit: 1473
LEALANA Bitcoin Grim Reaper
Just read that white paper another time, now I get a rough idea about how it might work in reality:

First two entities establish a common deposit by each sending certain amount of bitcoin into an address, similar to two banks each opening an account in counterpart bank and credit the counterpart same amount of money

Then all the transactions between these two entities will just change the ratio of each party's ownership of this common deposit. At the end of the clearing period, they settle the difference by a blockchain payment to make the ratio 50/50 again

This can help two large institutions, it is not very practical for single average user because the required deposit and one way payment nature. It seems single average user would still need to rely on large institutions, and existing large institutions might use lightning network or establish the clearing channel through other arrangements
I guess the most promising application of LN is where payments between entities are frequent and roughly predictable over the life of a channel. These might be BitPay<->Coinbase, but also it might be a man that routinely buys a cup of coffee somewhere in the morning, so setting up a channel between him and the cafe might make sense, especially because of near-instant 'confirmation'.

What you might be missing here is that all these channels can be chained together, forming a mesh-like network. In this case, you can have only one channel open, and send a payment to anyone in this network. This payment will be routed through intermediate hops right to the receiver.

The well-connected hops can be called hubs, and will receive a fee for their service. In theory, anyone can become a hub, it's only limited by how much BTC you have, i.e. how many channels can you fund with them.

True, LN seems to be very similar to how banks and institutions work in a closed loop. However, in legacy financial system, one weak link on the chain might trigger a systematic failure like Lehman brother's case, because the whole system have very little real money in circulation. If LN chains are widely applied, it will also have such kind of risk, and without central bank bailout

Most of the retail transactions are very sporadic and unpredictable. If you routinely buys a cup of coffee somewhere in the morning, then it is very likely the shop will sell you some batch discount coupon that give you 10 coffee for the price of 9, and you pay the whole package at once, reducing the transaction fee. This is also observed in mobile fee charge: Previously telephone company charge you based on how much and how frequent you use the service, now they are using a bulk model to charge you regardless of usage, to dramatically reduce the amount of transactions

I guess there will be VISA-like mechanism if the clearing based settlement is widely used. Consumers will periodically (when they receive the salary) charge their web wallet in mobile that they can pay at any location that accepts bitcoin payment. And the real payment happens between the web wallet company and Bitpay. But unless we have many payment processors and credit issuer, this seems like a single point of failure

Use blockchain to do large deposit/withdraw, use web wallet to do casual spending, this could be the trend for the coming years

How does a "weak" link on the chain have anything to do with systemic failure of Lehman brothers?

The fiat system is already fundamentally flawed given there is more digital fiat than actual paper redeemable fiat you can touch. that has nothing to do with a "weak" link of a network of banks (or transfer channels between banks).
legendary
Activity: 2492
Merit: 1473
LEALANA Bitcoin Grim Reaper
I watched the presentation on the lightning network and if it allows regular payments along with the option for this side enhancement then it could help a lot with the block size problem.

The lightning network basically allows people to set up payment nodes to run transactions which can be as many transactions as you want in a certain amount of time without touching the blockchain. At the end of the time period the final balance of the transaction is posted to the blockchain. The people running the nodes have no way to interfere with the transactions and it allows for more anonymity.

I am cautiously optimistic about it.

https://www.youtube.com/watch?v=-aI4inWxBwk

HMM

1. Increase the blocksize by a "decent" amount to accommodate transaction volume by changing ONE LINE OF CODE.

OR

2. Create "the lightning network" to accommodate transaction volume by creating an entirely new system to piggy back on top of bitcoin by adding THOUSANDS OF LINES OF CODE.




Answer = 1  Grin
legendary
Activity: 1988
Merit: 1012
Beyond Imagination
Not really sure, but I guess the LN nodes might be practicing FRB by then, and the failure of one nodes will trigger a large scale of withdraw to blockchain from every nodes customer, thus collapsing them all. How to make sure an exchange does not do FRB? I suppose most of them do today
You can't collapse the whole system because of a the failure of a single node when it comes to LN. Essentially LN will be like a distributed network.
Quote
Each channel is a payment relationship between two people. Existing payment channels, like what Streamium uses, end there. What the Lightning Network would introduce is the ability for channels to be chained together to send a payment from one person to another through any number of intermediaries.
Example:
Alice comes across Dave's wallpaper site and wants to buy one for 50 bits. Alice doesn't have a payment channel with Dave and doesn't want to set one up because this is a one off payment. Alice does have an existing channel with Bobpay, though. Bobpay has a channel with Carolbase and Carolbase has a channel with Dave. Alice and Dave can create a set of transactions that chain the channels together so Alice pays Bobpay who pays Carolbase who pays Dave.
This is taken directly from reddit. The Lightning Network does not have a single point of failure (as far as the technology itself is concerned). Although I'm not sure what exactly you're talking about? Could you elaborate and back it up with a source?

The risk comes from the centralized organization, not LN in particular. If each LN payment channel is totally independent from others, then the fail of one channel would only affect two institutions. However if many channels are chained together and many channel carries third party payments, then if one of the main channel failed (for example hacking of one of the private key in Bitpay), then all the transactions are stopped due to the chain is broken


Q7
sr. member
Activity: 448
Merit: 250
Conducting off the blockchain transaction will sure put more pressure on centralization But I'm just wondering if that will involve another ledger to be created since i wonder how are they going to record and capture all these transactions before broadcast it to the blockchain.
legendary
Activity: 2674
Merit: 1083
Legendary Escrow Service - Tip Jar in Profile
Could the lightning network solve the block size problem?

I say it can't by definition. The lightning network is not bitcoin. It is an altcoin. You can't fix bitcoin by using an altcoin. That is no fix, that is simply only not using bitcoin.

And it doesn't matter that the transactions land in the bitcoin network somehow at the end. You did not fix bitcoin by using LN.

I don't like all these claims about bitcoin not being able to fulfill it's role as a currency so that we need crutches to let bitcoin still work somehow. No, bitcoin itself has to be made capable of dealing with this itself.
legendary
Activity: 3430
Merit: 3080
I do like the lighting network, but it should not be considered as an alternative to increasing the block size from where it is now. Since we should bring the benifits of using the Bitcoin blockchain directly to as many people as possible, as far as the technology allows at least.

Just to demonstrate my laziness when it comes to looking at this system, I'm not sure how true the above is. I kept listening to the Lightning presentation in parts while distracted, and I've wondered ever since I heard about it years ago "where's the side chain part?".

I think the answer is that there are no side chains; lightning is a way of aggregating transactions on the main chain. They can take a while to actually hit the main chain (while the channels resolve, which are basically a bunch of chained multi-sig addresses).

So it's on the main chain, but somewhat indirect. And it should enable a load of stuff straight on the main chain too (recurring/micro payments is a significant one for bitcoin, hopefully the protocol will be sufficiently economic for any merchant to open their own)

At some point I'll actually look at lightning properly, just don't ever seem to make time for it
hero member
Activity: 546
Merit: 500
I do like the lighting network, but it should not be considered as an alternative to increasing the block size from where it is now. Since we should bring the benifits of using the Bitcoin blockchain directly to as many people as possible, as far as the technology allows at least.
hero member
Activity: 770
Merit: 500
✪ NEXCHANGE | BTC, LTC, ETH & DOGE ✪
Sounds like a good solution. There is really no much sense on filling the blockchain with very small transactions.
Pages:
Jump to: