Try   HackMD

What's New in Eth2 - 6 Mar 2020

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
Ben Edgington (PegaSysConsenSys — but views expressed are all my own)

Edition 37 at eth2.news

Top picks

Pick of the week is the self-proclaimed Beacon Chain Ethereum 2.0 explainer you need to read first by my OG colleague Joseph Chow. Pretty much what the title says

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Phase 0: The beacon chain

An update to the spec (v.0.10.2?) is due out soon, including a few things from the external audit (which will be published soon) and some networking items.

Testnets

Great excitement earlier today! The first validator was slashed on Prysm's Sapphire testnet.

You can see the block where it occurred, here - scroll down to the bottom where it says "1 attester & 0 proposer slashings".

So what happened? The proposer of the block included evidence that a validator making attestations committed a slashable offence. We can see the data in the block via Prysm's API. Look carefully in there and you can see the attesterSlashings object. This contains evidence of two conflicting votes (attestations) made by a validator:

  • Validator #35293 voted once for source checkpoint 12757 and target 12758 with block root "YnJ1aGFoYQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
  • The same validator then voted again for the same source and target checkpoints, but with with a different beacon block root, "kJtJdW/ZLB+dJkLgsxvNQzLM1uAdbe/Au3YsSNOiY2A="

This is counted as a "double vote" (two votes with different attestation data, but the same target epoch), which is a slashable offence under the Casper FFG rules. This is not something that can happen by accident to a normally behaving validator: it was either deliberate or the result of bug.

We can also check the validator record, and verify that it has been marked as slashed and exited. It will have had 0.1 Ether slashed as soon as the offence was detected (on the real network this will be 1 Ether), and will have a further slashing penalty applied in about 18 days' time, the amount of which will depend on how many other validators are slashed in the meantime.

The main point of this is that the Prysmatic team were able to detect this slashable behaviour. This is far from trivial amidst all the activity occurring on the network.

In other testnet news, we put our PegaSys client, Teku, to work syncing up the Prysm testnet. It was pretty slow at the time, but we've since merged in a massive PR to implement a new binary tree datastructure, along with a bunch of other speedups. And, Prysm is now syncing the Lighthouse EthDenver testnet. Looking good for joint testnets!

Testing

Protolambda's Rumor REPL tool for Eth2 network testing is on the verge of becoming self-aware. A network testing strategy is being put together that can run on top of the tool.

The work that Sigma Prime is doing on fuzz-testing the various clients continues to progress nicely.

Rewards and Penalties

Herman Junge of the ConsenSys Pukara (staking as a service) team wrote a detailed and clear article on rewards and penalties. This is the explainer I've been trying to write for months, but it always got out of hand: there's a lot of subtlety to cover. Kudos to Herman for doing a great job

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
. In conjunction with this, there is code for a rewards and penalties simulator, and a couple of simulation widgets: 1, 2.

Regular Calls

Implementers' call

Call #34 took place on the 27th of February.

Networking call

The network working group met on the 4th of March. I wrote some notes from the call. It was pretty technical.

There was also a post-call ad-hoc meeting at EthCC, with some brief notes here: basically an outline plan for "official" testnets.

Stateless Ethereum (fka Eth 1.x)

There was a stateless Ethereum call on February 25th. Here's Griffin's write-up.

Piper Merriam's EthCC talk (see below) is a great summary of the current state of play. (See what I did there?)

EthCC

I've been pretty miserable all week because I had to cancel my travel to EthCC in Paris at the last minute

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
. Thankfully, the livestream was pretty good most of the time, and I was able to keep up with a few things.

Here's a round up of all the talks in the Eth2 track, with links to video, and slides where I have info. I've also included a couple of other talks with an Eth2 angle.

Day 1, 3 March 2020

  • Will Villanueva, "Phase2 Update from Quilt": video slides
    • After 10 mins it turns into a great extended Q&A session when the projector gives out.
  • EF Research Team, "Eth2Real Workshop": video slides
    • Lots of missing bits in the video, sadly.
  • Vitalik Buterin, Funding ecosystem public goods: video
    • The beginning is missing and the sound is terrible until 7 mins in.
  • Joseph Lubin, Keynote/fireside chat: video
  • Barnabé Monnot, RIG Bouillabaisse: Incentives in eth2 and beyond video slides
    • Note that the video is mislabelled
  • Vlad Zamfir, Liveness in CBC Casper, video
  • Cayman Nava, Navigating Eth2 with Simple Serialize, video

Day 2, 4 March 2020

  • Aditya Asgaonkar, Design Choices in Eth2.0, video slides
  • Mikerah Quintyne-Collins, Validator Privacy in Eth2.0, video

Day 3, 5 March 2020

  • Alex Stokes, "Eth1 meets Eth2: forecasting the future": video slides
  • Piper Merriam, "Stateless Ethereum": video
  • Christopher Goes, Interblockchain Communication for Eth 2.0: video
  • Mehdi Zerouali, Lighthouse: Road to Eth2 mainnet, video slides

Research

Mikhail Kalinin is working on Eth1 <-> Eth2 bridges. One part of this that's under discussion is applying the "finality gadget" to the Eth1 chain. He analyses the finality gadget in an EthResearch post. Being able to watch the beacon chain is crucial to constructions like this, and Mikhail has also recently written about what an FFG client might look like.

There's lots going on around stateless Ethereum just now. Here's a discussion on the challenges of providing witnesses. See also Sam Wilson's presentation discussed below.

Dankrad gives a sketch of a way that atomic cross-shard transactions could be implemented without too much machinery.

An analysis of the performance of some zero-knowledge cryptographic primitives on Ewasm that might be important for Phase 2.

In other news

  • Development updates from Nimbus and Prysm
  • A bunch of people hacked on Eth2 at EthLondon last weekend. And some won cash prizes!
  • Sam Wilson's slides from Eth222 on Dynamic State Access & Solidity. Witness provision will be easier (in a future stateless version of Ethereum) if access to state is "static" (knowable beforehand). Here's a thread that explains why. In the presentation, Sam shows a way for Solidity to alert a developer to non-static (dynamic) state accesses. There's also some good new discussion on his ethresear.ch post.
  • Here's the Quilt team's reading list.
  • 10 mins of Vitalik on BlockTV talking Eth2 among other things.

And finally

I'm still thoroughly enjoying working on the Eth2 Annotated Spec. Progress is quite slow, but mostly because I just keep falling down rabbit holes that just have to be explored. It really is fascinating.

Anyway, check it out, and let me know what you think.


Follow me on Twitter to hear when the next edition is out 🙌.

 We also have an RSS feed.