News for hackers. Stuff that matters.
Re:Lightning Network Skepticism by 3dfan on Friday December 25, 2015 @02:08PM (#10792012)
Is there any rationale for LN?

As I understand the situation: Bitcoin has a hardcoded limit for the number of transactions that can be processed every 10 minutes. Having such a limit is a good thing, because nobody can stress the network with an unlimited number of transactions. But the limit should be close to the normal usage of the network. So the hardcoded limit should rather be a setting that gets updated from time to time.

So there are the Bitcoin Unlimited guys who propose a client that has a setting for the limit.

And there are the LN guys, who propose a whole new layer on top of Bitcoin. Why?

Re:Lightning Network Skepticism by pstrateman on Friday December 25, 2015 @02:29PM (#10792076)
Lightning (which is shorthand for Hash Locked Bi-Directional Payment Channels) is a trust-less net settlement system built by leveraging the smart contracting capabilities of bitcoin.

Such a system enables transactions to occur between a limited set of participants without the requirement that the entire world know about them.

Avoiding telling the entire world reduces the cost of transaction processing by many orders of magnitude (something on the order of 1,000,000 times cheaper).

Re:Lightning Network Skepticism by 3dfan on Friday December 25, 2015 @02:35PM (#10792102)

    reduces the cost of transaction processing
I never heard anybody complain that the transaction processing is too expensive. Both miners and users seem to be quite happy.
Re:Lightning Network Skepticism by tdryja on Friday December 25, 2015 @02:43PM (#10792132)
Check out /r/Bitcoin sometime for users complaining about transactions fees :) (Actually more the threat that some day there will be significant fees)

Unfortunately Bitcoin has often been oversold as being "free"; but if transactions are free, and there's a fixed number of coins to mine, who pays for this whole network in 30 years?

The motivation behind the design of LN is to minimize the number of transactions which need to be globally verified (which has a cost) while still adhering to the general model of Bitcoin (decentralized, pseudonymous, etc).

You're right though that with tx fees being on the order of ~0.05 USD, you don't really need LN yet. I've long assumed that fees would become significant, pushing out some use cases. That's already happened with e.g satoshidice.

Re:Lightning Network Skepticism by 3dfan on Friday December 25, 2015 @02:57PM (#10792165)
Uh oh ... for all I know, r/bitcoin is not a free community but gets heavily censored. A more balanced perspective can be found on r/btc:

https://www.reddit.com/r/btc

So you say LN is to solve future problems. Because transactions are free and in 30 years nobody will do the mining for free. Well, thats why bitcoin has fees. And a mechanism to let the market decide on those fees. This has been planned from the beginning.

From what I can see, all is fine with bitcoin. And there is no need for the complexity LN brings.

Re:Lightning Network Skepticism by josephpoon on Friday December 25, 2015 @03:38PM (#10792290)
It's already infeasible to directly make a single spend of $0.0001 on the blockchain itself (transaction fees are $0.02-$0.05).
Re:Lightning Network Skepticism by 3dfan on Saturday December 26, 2015 @04:34AM (#10793745)
What is the use case of spending $0.0001?
Re:Lightning Network Skepticism by Taek on Saturday December 26, 2015 @08:11AM (#10794049)
Downloading a webpage, for example. Sending an email, giving someone an upvote, making use of a caching service.

Basically any sort of payment you would want to do at the machine level. If I'm uploading a file to you, I would want you to pay per MB because I'm not sure if you're going to leave after you have 50% of the file.

Re:Lightning Network Skepticism by freework on Friday December 25, 2015 @04:26PM (#10792403)
> who pays for this whole network in 30 years?

Why pays to seed torrents? Who pays to run NTP servers? Who pays for running game servers? Its is wrong to assume that something has to be profitable in order for it to exist.

Re:Lightning Network Skepticism by maaku on Saturday December 26, 2015 @12:15AM (#10793359)
Running the Bitcoin mining network costs millions of dollars per day in electricity costs alone. Who's going to to pay that when the subsidy goes away?
Re:Lightning Network Skepticism by mrb on Saturday December 26, 2015 @04:54AM (#10793765)
You are wrong about mining costs. Miners are estimated to consume 100-200 megawatt. Most of them pay below worldwide average electricity prices, being located in Iceland (KnC), WA state (BitFury), etc; maybe around $0.05/kWh. So the miners' daily costs would be $120 000 to $240 000.
Re:Lightning Network Skepticism by oafitupa on Saturday December 26, 2015 @01:24AM (#10793475)
The block reward only halves, it doesn't "go away". Unless you are talking about when it can't halve anymore because of the 8 decimals limit, which we could just remove, just like Satoshi wanted (same situation as with block size limit).
Re:Lightning Network Skepticism by supermari0_ on Saturday December 26, 2015 @02:34AM (#10793579)
If we keep the 21M limit, subsidy will be insignificat at one point.
Re:Lightning Network Skepticism by tdryja on Friday December 25, 2015 @04:37PM (#10792425)
If both transaction fees and the coinbase are zero or negligible, there is potential revenue in mining: to reverse transactions and rip people off.

Altruism certainly exists, but assuming that altruistic actors (rather than self-interested actors) will expend more resources than attackers is a very different security model than what Bitcoin is designed upon.

Re:Lightning Network Skepticism by everlast32 on Friday December 25, 2015 @04:20PM (#10792387)
For the past month there has been a backlog of 6000 to 10,000 transactions in the mempool.

This is causing nodes to go offline. There are about 500 to 1000 rasberry pies operating as full nodes on the network and their 1 GB of ram is not enough to hold the backlog of tx.

Blockstream is proposing to raise the limit to 2MB 2 years from now. That would be a disaster for the network.

Re:Lightning Network Skepticism by tdryja on Friday December 25, 2015 @02:34PM (#10792093)
"Bitcoin Unlimited" has no maximum block size, hence the name.

There are many problems which arise from unbounded transaction rates in Bitcoin. The most fundamental is that long term the coinbase reward is zero, and transaction fees are the only reason to create new blocks. Without artificial scarcity of block space (artificial in the sense of beyond what hardware can support) transaction fees would tend to zero, and mining would no longer generate revenue.

LN is proposed to allow many users and many transactions (when nodes cooperate) while keeping the security properties of Bitcoin (when nodes don't).

Re:Lightning Network Skepticism by dontbelieveyou on Friday December 25, 2015 @04:50PM (#10792460)
Re:Lightning Network Skepticism by aback on Saturday December 26, 2015 @10:44AM (#10794325)
> Without artificial scarcity of block space

Or natural scarcity, which already exists.

Re:Lightning Network Skepticism by freework on Friday December 25, 2015 @04:23PM (#10792397)
Mining does not need to be profitable. People always make the mistake in thinking that if mining ceases to be profitable that mining would suddenly stop. That is simply not how it works. It is more economical to buy tomatoes at the grocery store, but that doesn't stop people from growing tomatoes in their backyard.
Re:Lightning Network Skepticism by maaku on Saturday December 26, 2015 @12:22AM (#10793372)
Mining costs millions of dollars per day in electricity costs. I guess we can just expect a few people to burn a hole in their pocket for the good of the network?
Re:Lightning Network Skepticism by aback on Saturday December 26, 2015 @10:49AM (#10794342)
This reflects a misunderstanding of the drivers of mining costs.

Mining only costs a lot because coin value is high and the block reward is high. This means miners are willing to spend more to win the reward.

As the block reward lowers then mining becomes funded entirely by equilibrium-priced fees.

Re:Lightning Network Skepticism by maaku on Saturday December 26, 2015 @11:24AM (#10794437)
Oh I understand mining economics quite well. The comment I was responding to however claims that some people will continue to mine at a loss after the subsidy is negligible. However that assumes that people would be willing lose hundreds of millions of dollars per year on power costs just to meet current security levels, let alone whatever level of higher security might be required in a moonshot scenario.
Re:Lightning Network Skepticism by tmornini_ey on Saturday December 26, 2015 @12:49PM (#10794653)
Millions of people collectively losing hundreds of millions of dollars a year is less than $1/month individually.
Re:Lightning Network Skepticism by Taek on Saturday December 26, 2015 @08:18AM (#10794062)
Sorry to be pedantic, but I do believe the daily cost of mining is closer to $250,000 - $750,000. Not a small number, but also not millions per day.
Re:Lightning Network Skepticism by maaku on Saturday December 26, 2015 @11:20AM (#10794423)
I'm a physicist so naturally I do all back-of-the-envelope calculations to one-significant figure with rounding at each step. :)

My own estimation is between $400k per day (hard lower bound) and $800k per day depending on assumptions about hardware efficiency, although around $100k / day was added in the last week in a trend that is continuing, so $1MM/day will very quickly be accurate.

Re:Lightning Network Skepticism by Andrew_Quentin on Friday December 25, 2015 @11:29PM (#10793257)
Welcome to HN

If you knew anything about Bitcoin Unlimited I am sure you would have come across its most fundamental aspect - moving the blocksize limited from the hardcoded centralised protocol layer to the transport or messaging layer thus allowing each node operator to choose the limit in a decentralised fashion so creating an emergent consensus.

In regards to your speculative economics, as I am sure you are aware, storage/bandwith/processing/validation and mining has costs. No one would therefore mine a transaction for free in 20 years because if they do so they would soon go bankrupt.

Bitcoin's design has an inbuilt long term solution. Reward miners early on - grow adoption - increase transactions to a "very large number" - charge pennies out of millions of transactions - profit.

Finally, LN may be secure for microtransactions. It is in no way secure for decent transactions. There are millions of ways it can be hacked even now that it only exists in speculative heads. Once it becomes hardcode implemented I am sure attack vectors will only increase much further.

Re:Lightning Network Skepticism by maaku on Saturday December 26, 2015 @12:20AM (#10793369)
> If you knew anything about Bitcoin Unlimited I am sure you would have come across its most fundamental aspect - moving the blocksize limited from the hardcoded centralised protocol layer to the transport or messaging layer thus allowing each node operator to choose the limit in a decentralised fashion so creating an emergent consensus.

If you knew anything about Bitcoin, you'd know that this is a sure-fire way to get forked off the network and ripped off by double-spends. The nature of Nakamoto consensus is such that consensus parameters are not up to vote.

Re:Lightning Network Skepticism by aback on Saturday December 26, 2015 @10:42AM (#10794323)
> The nature of Nakamoto consensus is such that consensus parameters are not up to vote.

One of two things must therefore be true:

1. If consensus parameters cannot be voted on then Bitcoin is a failure, and Core's huge war against upstarts like XT and BU are totally misplaced (since as you say they cannot be changed by vote) or

2. You're dead wrong

If consensus parameters are not up to vote then obviously XT simply cannot be "voted in", so why fight it?

If consensus parameters are not up for a vote then Bitcoin loses permissionlessness and censorship resistance: a hostile actor merely needs to infiltrate the governance structure of one ragtag dev team and he can block certain transactions or indeed greatly harm the network by inserting consensus code to keep undesirable txns out or by making the rules unworkable. Since nobody can vote the bad rules out, the network just has to accept the bad rules and implode.

If consensus rules cannot be voted on then permissionless innovation of the system is thwarted or impossible. If I have a great idea for a consensus rule innovation, I have to get permission from the keepers of the consensus rules to add my rule change.

If consensus rules are not up for vote then if a supermajority of users including miners attempt to change the rules by running different rules, nothing will happen, because the rules "weren't up to vote." But it is objectively the case that if this were to happen, then the rules would be changed because a majority of voters agreed with the change. This is the defacto behavior of Bitcoin.

Methinks that #2 is the case. Consensus rules, as a simple matter of fact, are amenable to change by a simple supermajority of CPU votes from a majority of miners and nodes.

Re:Lightning Network Skepticism by dgenr8 on Saturday December 26, 2015 @01:34PM (#10794790)
> 1. If consensus parameters cannot be voted on then Bitcoin is a failure, and Core's huge war against upstarts like XT and BU are totally misplaced (since as you say they cannot be changed by vote)

Eagerly awaiting a substantive response to this by maaku.

However I disagree with the BU proposition that unrestrained "voting" on max blocksize is a good idea. It doesn't stand up to attacks by a small amount of hash power.

Re:Lightning Network Skepticism by kanzure on Saturday December 26, 2015 @02:37PM (#10794983)
> > 1. If consensus parameters cannot be voted on then Bitcoin is a failure

> Eagerly awaiting a substantive response to this by maaku.

I am very much not maaku, but first it's obvious that Proof-of-Work has not been used to decide consensus protocol parameters (it's used for transaction ordering and establishing the consensus history). Second, Bitcoin success or failure is entirely unrelated to how the protocol wasn't designed to vote on consensus protocol parameters.

Re:Lightning Network Skepticism by aback on Sunday December 27, 2015 @12:00AM (#10796478)
Of course proof of work has always been used to decide consensus parameters. It's just tuat no controversial changes / failures to change have ever been put to the vote.

As long as the changes are non controversial then miners and nodes simply act at a rubber stamp. But it's unrealistic to think no important issues will be controversial.

If consensus changes arent up for CPU vote, then you tell me what happens if a supermajority of miners and nodes decide to run software with different consensus rule from Core? Sounds like a CPU vote too me.

Re:Lightning Network Skepticism by dontbelieveyou on Saturday December 26, 2015 @03:04PM (#10795076)
> it's obvious that Proof-of-Work has not been used to decide consensus protocol parameters

Every "soft-fork" to date has used PoW to activate new consensus rules by requiring block version super-majority.

Re:Lightning Network Skepticism by kanzure on Saturday December 26, 2015 @04:28PM (#10795367)
> Every "soft-fork" to date has used PoW to activate new consensus rules

Consensus rule parameters are things like "max block size". However, there have been some proposals for extension blocks to increase block size without requiring a hard-fork (e.g. using a soft-fork mechanism).

Re:Lightning Network Skepticism by maaku on Saturday December 26, 2015 @11:26AM (#10794438)
You are free to read the code and see for yourself.
Re:Lightning Network Skepticism by aback on Saturday December 26, 2015 @12:34PM (#10794615)
It is my reading of the code and understanding of the emergent crypto-economy that leads me to these self-evident conclusions.

Are you refuting my points or agreeing with them? If you have an actual rebuttal to any of them, I'm interested in hearing it.

Re:Lightning Network Skepticism by dontbelieveyou on Saturday December 26, 2015 @12:34AM (#10793393)
> The nature of Nakamoto consensus is such that consensus parameters are not up to vote

"The proof-of-work also solves the problem of determining representation in majority decision making. If the majority were based on one-IP-address-one-vote, it could be subverted by anyone able to allocate many IPs. Proof-of-work is essentially one-CPU-one-vote." - Nakamoto

Re:Lightning Network Skepticism by kanzure on Saturday December 26, 2015 @02:39PM (#10794990)
> "Proof-of-work is essentially one-CPU-one-vote." - Nakamoto

Yes this is one of the things that Satoshi got wrong. "1 CPU = 1 vote" is wrong. Turns out that Proof-of-Work is unrelated to the physical quantity of CPUs, rather it's more about computation and hashrate. Also it's a stretch to call Proof-of-Work a vote ..... it's not an election, it's more like a random lottery or something.

Re:Lightning Network Skepticism by dontbelieveyou on Saturday December 26, 2015 @03:12PM (#10795108)
He stated PoW was _essentially_ one-CPU-one-vote. It's clear that the intent is to mean hashrate, or CPU power as he phrases it multiple times in the same paper.

> it's not an election, it's more like a random lottery or something.

A random lottery where your odds of winning directly correlate with your CPU power / hashrate. The more you win the more influence you have over the state of the network. Comparing it to a vote is a reasonable analogy.

Re:Lightning Network Skepticism by maaku on Saturday December 26, 2015 @12:44AM (#10793411)
Not over the consensus parameters. You could have infinite hash power, but if your blocks are invalid they will be ignored.
Re:Lightning Network Skepticism by dontbelieveyou on Saturday December 26, 2015 @12:59AM (#10793442)
Re:Lightning Network Skepticism by maaku on Saturday December 26, 2015 @01:06AM (#10793449)
Um, I'm not sure why you are pointing to that? ISM is used for soft-fork upgrades, which do not revert existing consensus rules. You can have a ISM vote over a new block size, but old clients will still reject the bigger blocks.
Re:Lightning Network Skepticism by dontbelieveyou on Saturday December 26, 2015 @01:22AM (#10793471)
The upgrades are triggered by a super-majority of blocks of a certain version. This version maps to a possible new consensus rule. Block creation is a product of computational work. Therefore there is a precedent for CPUs/ASICs voting on the consensus rules of the system.

> ISM is used for soft-fork upgrades, which do not change existing consensus rules.

"Soft-forks" do change existing consensus rules. Will a miner's v1 blocks be accepted by the majority of the network today?

Re:Lightning Network Skepticism by maaku on Saturday December 26, 2015 @01:56AM (#10793519)
Which has no relevance to this conversation about BU and block size. Block size is not a parameter you can force on upgraded nodes by soft-fork.
Re:Lightning Network Skepticism by dontbelieveyou on Saturday December 26, 2015 @02:15AM (#10793545)
You made the claim that under "Nakamoto consensus" the consensus parameters are not up for a vote. A correction seemed warranted.

> Block size is not a parameter you can force on upgraded nodes by soft-fork.

Isn't this what the Segregated Witness proposal[1] effectively does? The new limit proposed would be 4MB with an expected confirmed transaction throughput increase on the order of 2x.

To quote Pieter:

"Another way of looking at it, is that we raise the block size to 4 MB for the witness part, but the non-witness has same size."

[1] http://diyhpl.us/wiki/transcripts/scalingbitcoin/hong-kong/s...

Re:Lightning Network Skepticism by aback on Saturday December 26, 2015 @10:51AM (#10794345)
"If"

And if they are not?

Re:Lightning Network Skepticism by linhares on Saturday December 26, 2015 @12:46PM (#10794645)
double-spend is now a feature, it's called rbf.
Re:Lightning Network Skepticism by martindevans on Friday December 25, 2015 @02:35PM (#10792099)
Roughly: LN allows you to transact instantly, but with a limited group of people (it takes one normal bitcoin transaction to setup your group, but then transactions are instant). Whereas bitcoin allows you to transact slowly (block confirmation time, i.e. ~10mins) with anyone.
Re:Lightning Network Skepticism by pstrateman on Friday December 25, 2015 @03:50PM (#10792321)
Actually it lets you transact instantly with anybody you can construct a route to.

That should be essentially everybody with even a pretty loosely connected graph.

Re:Lightning Network Skepticism by mrblockchain on Saturday December 26, 2015 @02:50AM (#10793614)
How do you know? There isn't even a working prototype yet!
Re:Lightning Network Skepticism by TD-Linux on Friday December 25, 2015 @03:31PM (#10792266)
The lightning network paper at https://lightning.network/ addresses the rationale for its creation.