News for hackers. Stuff that matters.
Re:Ethereum 2.0 launches by noneeeed on Tuesday December 01, 2020 @08:14AM (#25264814)
Can anyone give a TLDR of what is significant about Ethereum 2.0 for those of us who don't follow this stuff much?

As blockchain tech goes, Ethereum always seemed the most interesting.

Re:Ethereum 2.0 launches by nootropicat on Tuesday December 01, 2020 @09:36AM (#25265488)
Multiple aspects. PoS offers much, much stronger security than PoW while being about 4000x cheaper to run and sustainably decentralized. Sharding (along with rollups) allows for a truly global scale platform - over 100k TPS, potentially 1M, while still running on normal computers in people's homes. PoS is a requirement for sharding, as dividing security under PoW would make each shard too easy to attack.

Last but not least, full eth2 turns eth into a positive yield asset, a share in ethereum (real income depends on fees paid by users - ethereum already dominates).

https://cryptofees.info/

To not overhype, the current launch is really an incentivized testnet only for PoS itself - real ethereum still runs on PoW as it was. It's important because it shows that after long delays eth2 is finally starting to happen, and because consensus itself is like a car that can drive without transporting anything or anyone - not very useful at the moment, but changes required to make it useful are relatively small compared to building the car from the ground up.

Re:Ethereum 2.0 launches by eMGm4D0zgUAVXc7 on Tuesday December 01, 2020 @02:55PM (#25269122)
> PoS offers much, much stronger security than PoW

Uh, why do you say that?

The security of PoS in fact ought to be much LOWER than the security of PoW:

The goal of requiring proof of work is that you cannot just send multiple versions of the same transaction into different areas of the network to double-spend your money - because you need to commit work for producing a block, and due to consuming energy you can't fake that.

Well, you can compute two (or more) blocks in parallel, but then you'll spend half of your available CPU (or ASIC nowadays) cycles on each block, thus cutting your speed in half. So the non-malicious competitors on the network will produce more blocks meanwhile because they're not splitting their computation power, and thus your fake blocks will get invalidated because they're on the shorter chain.

With PoS on the other hand you can create as many fake blocks as you want and spam them to the network. The only security is the hope that the random network topology arbitrarily results in the double-spending blocks arriving at the targets under attack after the other blocks arrive.

But if you run thousands of nodes on the cloud and thus have better network connectivity than the victims you can make your double-spend blocks arrive first at the victims.

So:

- PoW: Relies on physical limits, you need to have physical hardware and physical energy to conduct an attack.

- PoS: Relies on the network connectivity of the attacker being hopefully worse than the connectivity of the non-malicious network. Who can guarantee that? Nobody.

Re:Ethereum 2.0 launches by nootropicat on Tuesday December 01, 2020 @03:40PM (#25269592)
Security deposits of attackers in ethereum are slashed, up to 100%, in case of an attack. The value at stake can potentially grow into hundreds of billions, much more than any PoW chain can hope to accumulate in mining revenues in its entire existence.

Last but not least, there's no way to delete PoW attacker's gpus, but hostile stake is always going to be slashed. Asic pow chain can be forked - once - to a gpu pow, but that's it, and after that there's no recourse to sustained attacks. This property virtually guarantees that no attack against PoS with slashing is ever going to happen.

https://vitalik.ca/general/2020/11/06/pos2020.html

Re:Ethereum 2.0 launches by eMGm4D0zgUAVXc7 on Tuesday December 01, 2020 @04:31PM (#25270194)
> Security deposits of attackers in ethereum are slashed, up to 100%, in case of an attack.

What defends against the attacker configuring his nodes to just not relay the blocks which slash his deposits, by having a majority in the network connectivity, and thereby convincing victim nodes that he in fact is the victim of false slashing because the victims will only discover the slash-claims much after the attackers "valid" blocks?

Or in other words:

Isn't the slashing mechanism also reliant upon mere hope that the network topology randomly happens to be in favor of non-malicious peers?

Re:Ethereum 2.0 launches by ryebit on Tuesday December 01, 2020 @05:14PM (#25270739)
Not OP... but one big difference between PoW and PoS is that:

when a PoW block is mined, there's no way to know how much hidden equipment is out there mining a parallel chain, which could suddenly appear and take over with more accumulated work. You hope the malicious actor doesn't have 51%, but there's no way to actually prove that they aren't out there.

with PoS on the other hand, the set of validators who are voting on a block is known many blocks in advance. so say a malicious validator has X% of the voting power on a given block: he can't refuse to relay the other votes, because it will be obvious to all other nodes that he only speaks for X%, and what he's broadcasting lacks quorum, because the other (100-X)% votes are missing.

Whereas the other (100-X)% group will be actively broadcasting that they're slashing his stake; and if (100-X) has quorum, those votes will be accepted as valid by all the nodes on the network, regardless of what the malicious actor decides to broadcast.

TLDR: under PoW, silence is assumed to be absence of dissent, since number of miners out there is unknown. Whereas under PoS, silence still allows proving lack of quorum (since the voters are known well in advance), so censorship doesn't let a malicious validator legitimize their vote.

Re:Ethereum 2.0 launches by nootropicat on Wednesday December 02, 2020 @01:57AM (#25273885)
If the attacker has 2/3 of the entire stake then the only option is to manually coordinate a fork to a chain without his censorship, allowing protocol penalties to run its course. A direct analogue of an asic PoW fork in case of a sustained attack.

>and thereby convincing victim nodes that he in fact is the victim of false slashing because the victims will only discover the slash-claims much after the attackers "valid" blocks?

It's not possible for 'false slashing' to occur, because slashing requires presenting conflicting votes.

>Isn't the slashing mechanism also reliant upon mere hope that the network topology randomly happens to be in favor of non-malicious peers?

topology doesn't matter in this case, 2/3+ consensus is asynchronous. 2/3 of stake is required to finalize blocks, so the attacker would finalize his own chain without slashing.

There are some ideas about 99+% proof consensus which rely on topology and nodes being online (which means they can observe that censorship is happening) but it's not currently implemented. Eventually I expect it to happen, making attacks a practical impossibility, by coupling asynchronous 2/3+ consensus guarantee with synchronous 99+% guarantee, effectively automatically coordinating anti-censorship forks.

https://vitalik.ca/general/2018/08/07/99_fault_tolerant.html

Re:Ethereum 2.0 launches by woah on Tuesday December 01, 2020 @05:09PM (#25270681)
You seem to assume that the attacker has control over the entire internet.
Re:Ethereum 2.0 launches by eMGm4D0zgUAVXc7 on Tuesday December 01, 2020 @05:34PM (#25270949)
Ethereum has 11 000 nodes currently: https://www.ethernodes.org/

There are probably many botnets of IoT devices with 10x that many nodes, aren't there?

So a single botnet could probably ensure that a target victim has the majority of peer connections to the attacker.

Re:Ethereum 2.0 launches by woah on Tuesday December 01, 2020 @08:04PM (#25272142)
If a validator signs two blocks at the same height, they will be slashed, lose their tokens, and not be able to participate in consensus. They get slashed when anyone submits evidence of them doing this. This trivially solves the "nothing at stake" problem from 2014 that you wrote your long original comment about.

If I understand it correctly, you are now saying that someone would DDOS the entire gossip network, completely halting any more production of blocks so that their slashing doesn't go through?

We're not even talking about "nothing at stake", or anything having to do with PoS anymore. We're just talking about a massive DDOS of an entire network. Node operators in PoS networks, as well as Bitcoin, have ways of dealing with DDOS which are the same as how anyone deals with it, and I don't need to get into them here.

If someone was able to overcome these DDOS mitigations and completely prevent a PoS network from receiving any legitimate transactions, they could do this to Bitcoin as well.

Re:Ethereum 2.0 launches by ishishkin on Tuesday December 01, 2020 @11:59PM (#25273418)
> They get slashed when anyone submits evidence of them doing this.

Who will record this "evidence" to the blockchain? Anyway there will be two versions of the blockchain. In one of them attacker's stake was not slashed and there is no any "evidence" of his malicious actions.

Re:Ethereum 2.0 launches by woah on Wednesday December 02, 2020 @12:52AM (#25273627)
The "evidence" is two blocks, with the same block height, both signed by the attacker.

Not sure what these two versions of the blockchain you're talking about are. Signing two blocks at the same height with the same chain id is the slashable offense. It doesn't matter what's in them.

If the attacker wants to have his own blockchain off in the corner where he has all the money, nobody cares.

Re:Ethereum 2.0 launches by ishishkin on Wednesday December 02, 2020 @09:19AM (#25276516)
> Not sure what these two versions of the blockchain you're talking about are.

Really?! One version is "Vitalik's fork" and another one is "non-Vitalik's fork". Which one of them is a valid chain? Any idea?

Assume the attacker is Vitalik and there an "evidence" of his attack. Who will dare to slash him? Vitalik won't include this evidence into "Vitalik's fork". If Vitalik wants to have his own blockchain, nobody cares, isn't it?

Re:Ethereum 2.0 launches by woah on Tuesday December 01, 2020 @03:38PM (#25269565)
This is completely untrue and has been since 2014. The solution is that validators are "slashed" and lose their tokens if they have been found to sign two blocks at the same height.
Re:Ethereum 2.0 launches by ishishkin on Wednesday December 02, 2020 @12:08AM (#25273455)
What has happened in 2014? Is that a time when brain-washing campaign in crypto-media has been started? "Slashing" is not a solution to this problem.
Re:Ethereum 2.0 launches by woah on Wednesday December 02, 2020 @12:55AM (#25273645)
Vitalik Buterin came up with a solution for the nothing-at-stake problem: https://blog.ethereum.org/2014/01/15/slasher-a-punitive-proo...

Also, I'm not sure why you and the other commenter are so argumentative about this. There are several PoS networks out there such as Cosmos, Tezos, etc, holding more than a billion dollars. If there was an issue, someone would have hacked them by now.

Re:Ethereum 2.0 launches by ishishkin on Wednesday December 02, 2020 @02:13AM (#25273951)
> Vitalik Buterin came up with a solution for the nothing-at-stake problem

Is that a link to an article from a peer reviewed academic journal?

> There are several PoS networks out there such as Cosmos, Tezos, etc, holding more than a billion dollars. If there was an issue, someone would have hacked them by now.

I'll give you a hint: "slashing" is not a thing that sustains security of these networks.

Re:Ethereum 2.0 launches by literallycancer on Wednesday December 02, 2020 @06:22AM (#25275398)
Where did he claim it was a peer reviewed journal?
Re:Ethereum 2.0 launches by ishishkin on Wednesday December 02, 2020 @10:58AM (#25277550)
Don't you think this claim should be supported by some reputable secondary source?
Re:Ethereum 2.0 launches by delaaxe on Tuesday December 01, 2020 @03:25PM (#25269452)
Thanks for answering questions I’ve had for a long time about POS. Do you have any links to share on the subject?
Re:Ethereum 2.0 launches by eMGm4D0zgUAVXc7 on Tuesday December 01, 2020 @04:32PM (#25270213)
Google "nothing at stake problem".
Re:Ethereum 2.0 launches by viraptor on Tuesday December 01, 2020 @03:58PM (#25269816)
Why did you not add "Who can guarantee that? Nobody." to the PoW description as well?
Re:Ethereum 2.0 launches by intothev01d on Tuesday December 01, 2020 @04:27PM (#25270155)
Exactly. As they say, first step is always the hardest. The switch from PoW to PoS was monumental and I'm glad they took the time to execute so well. This is a great step forward for Ethereum
Re:Ethereum 2.0 launches by DennisP on Tuesday December 01, 2020 @10:56AM (#25266247)
It's not the first proof of stake blockchain, but it's the first that allows hundreds of thousands of nodes to fully participate, while also having high security and rapid finality. This is only possible because of math that was developed three years ago.

https://twitter.com/technocrypto/status/1330150362427387910

In proof of stake, mining equipment and electricity consumption is replaced by the cryptocurrency itself. You put up your currency as a bond, get rewarded more for running the network, and lose your bond if you misbehave.

The other big advance for ETH2 will be sharding, so each node doesn't have to process every transaction. But that's not the part that launched today.

Re:Ethereum 2.0 launches by brightball on Tuesday December 01, 2020 @04:13PM (#25269961)
So will this be a new currency or will existing ETH switch to it?
Re:Ethereum 2.0 launches by CryptoPunk on Tuesday December 01, 2020 @04:37PM (#25270286)
Existing ETH will switch to it.
Re:Ethereum 2.0 launches by kolinko on Tuesday December 01, 2020 @08:21AM (#25264864)
It is powered by proof of stake, which means no asic miners, and possibly quicker blocks.

A new virtual machine for smart contracts (EWASM instead of EVM) giving better contract analysis options, and possibly higher sync speeds due to optimisations.

Also, sharding - so multiple jndependent blockchains, that should fix the scalability.

If I’m not mistaken, this release is not yet a full blown new chain, but just a partially functional one, designed to test stabiloty and safety.

Disclaimer - I’m a bit out of loop, so I meay be slightly wrong somewhere.

Re:Ethereum 2.0 launches by mratsim on Tuesday December 01, 2020 @08:37AM (#25264964)
The VM for smart contract is not set.

The roadmap has changed for the phases after this launch so that Eth1 contracts and the Eth1 chain can run on Eth2 so that the past years of Eth1 development are not thrown away.

Reading on the roadmap: https://ethereum-magicians.org/t/a-rollup-centric-ethereum-r...

Disclaimer, this roadmap is valid as of today Dec 1st 2020 but it might have change a couple of months from now.

Re:Ethereum 2.0 launches by kolinko on Wednesday December 09, 2020 @06:11AM (#25357421)
Ah, good to know, thanks. I was a bit out of the loop for the past year.

I wouldn't mind staying with EVM, since EWASM doesn't seem to offer much significant improvement (static jumps only, really).

Re:Ethereum 2.0 launches by fsewe20 on Tuesday December 01, 2020 @10:58AM (#25266263)
I think ewasm is a bit up in the air, may come along at some point but i think the developer tools built up on the evm (and dev knowledge of evm) isnt going to be quickly replaced.
Re:Ethereum 2.0 launches by antihero on Tuesday December 01, 2020 @09:12AM (#25265266)
Is EWASM basically just webassembly running on Ethereum?
Re:Ethereum 2.0 launches by fisf on Tuesday December 01, 2020 @09:35AM (#25265487)
Basically the deterministic subset of web assembly.
Re:Ethereum 2.0 launches by seibelj on Tuesday December 01, 2020 @08:18AM (#25264843)
Beginning of switch from Proof of Work to Proof of Stake consensus, which will end the mining process for Ethereum and switch to securing the network by locking up funds, drastically reducing the amount of energy used to secure the network. As a side effect of the consensus change, the amount of transactions per second will scale massively. There is not universal agreement among blockchain enthusiasts that Proof of Stake is as secure as Proof of Work, but many currencies such as Cosmos and Polkadot have already implemented Proof of Stake without security issues.
Re:Ethereum 2.0 launches by hardwaresofton on Tuesday December 01, 2020 @08:42AM (#25265009)
any idea on the increase in transactions per second/month/some time period? The things that have stopped me from getting into btc/eth are:

- scaling issues (it can't be used as a currency if this isn't fixed) - power issues (would be nice if we didn't create a huge pointless energy sink if we could avoid it) - the amount of footguns in ethereum (I think the language is too permissive)

It looks like this solves at least 2 of the three!

Re:Ethereum 2.0 launches by DennisP on Tuesday December 01, 2020 @09:56AM (#25265685)
There are basically two big things in Ethereum's scaling roadmap. One is sharding, so each node only has to process a fraction of all transactions. Initially there will be 64 shards, but it's designed to allow up to 1024. As individual nodes get more powerful, both the number of shards and the amount processed by each shard increases, for quadratic scaling.

The other part, which is on Ethereum mainnet already, is a layer-2 idea called rollups, which store transactions on chain in a very compressed format without losing security guarantees. There are several rollup systems, capable on today's Ethereum of doing 1000 to 9000 simple tx/sec.

Once both systems are live, total capacity will be 20K to 100K tx/sec, not counting the quadratic improvements.

On the research side, there's also work to make data validation more efficient by replacing merkle trees with something more compact, like polynomial commitments. That would add another 10X factor to rollup scaling.

Regarding footguns, people are working on more rigorous languages than Solidity that still compile to the EVM. So far their compilers aren't as solid so they don't get much production use yet.

Re:Ethereum 2.0 launches by hardwaresofton on Wednesday December 02, 2020 @02:00AM (#25273899)
Thanks for the summary of the current state of the art -- last I looked at this sharding/federated-chain stuff was still only research grade for bitcoin as a whole. If Ethereum is ready to productize that's amazing news.

Anything more than ~3000 tx/sec will be a game changer and maybe ethereum will finally deliver on the promise of usability as currency.

Re:Ethereum 2.0 launches by seibelj on Tuesday December 01, 2020 @08:47AM (#25265056)
At least 1000 transactions per second if not more. In terms of language security, it is possible to use a verified subset of the language in order to avoid bugs, as you can with any Turing-complete language. Few currently do, however.
Re:Ethereum 2.0 launches by hardwaresofton on Wednesday December 02, 2020 @02:01AM (#25273904)
Thanks -- yeah the language thing I guess is much harder to change, but I can protect from that by just sticking to relatively simple transactions, or maybe if some sort of professional review/audit agency would spring up...
Re:Ethereum 2.0 launches by jules-jules on Tuesday December 01, 2020 @08:22AM (#25264871)
You can check out the current roadmap here

https://ethereum.org/en/eth2/#roadmap

Re:Ethereum 2.0 launches by sshb on Tuesday December 01, 2020 @08:17AM (#25264837)