Ethereum Foundation outlines Solidity deposit contract and Altona v0.12 testnet plans

Ethereum Foundation outlines Solidity deposit contract and Altona v0.12 testnet plans

The Ethereum Foundation announced a formally verified Solidity version of the eth2 deposit contract and said the Altona v0.12 multi-client testnet was expected to launch within seven days. Danny Ryan’s update, published on 23 June 2020, also reported a continuation grant for Sigma Prime’s beacon-fuzz project.

A new implementation of the deposit contract

A new implementation of the deposit contract

The Solidity contract keeps the existing public interface, with one addition: an EIP-165 supportsInterface function. The Foundation said this makes the change transparent to existing eth2 clients and developer tools. Its Solidity code was translated largely line by line from the earlier Vyper contract to support review and formal verification.

Alex Beregszaszi rewrote the contract in Solidity, a small group of Solidity specialists reviewed it, and Runtime Verification formally verified it using much of the K-spec developed for the Vyper version. Suhabe Bugrara of ConsenSys R&D also reviewed the Vyper contract and its formal verification, prompting refinements to the specification.

The change followed concerns about the Vyper compiler. The source says several compiler bugs had been found and fixed during verification of the original contract’s bytecode. ConsenSys Diligence and Trail of Bits also produced investigative security reports that identified further bugs and raised systemic concerns about the compiler codebase. The update did not reject Vyper as a language; it described the language as promising, while noting ongoing work on formalisation and alternative compilers.

The Foundation recommended the Solidity version for eth2 mainnet and invited experts to review the contract and verification. The announcement also made clear that the new contract had not yet been added to the specification repository. Ryan said he planned to integrate it during that week and issue a minor version release. Findings qualified for the Eth2 Phase 0 Bounty Program.

Altona targets client testing

Altona targets client testing

Client teams were updating their software for specification version v0.12, with extra time devoted to security, functionality and client hardening. Altona was planned as the first public multi-client testnet for that version, initially controlled by the participating client teams, Afri and some Ethereum Foundation team members. The planned clients were Lighthouse, Nimbus, Prysm and Teku.

Altona was described primarily as a development network for checking v0.12 software in a production setting and finding issues that could emerge when different clients run together. Public participation was due to follow the initial launch, once the deposit contract address had been released. The testnet would use the new Solidity contract.

A larger, community-focused testnet was identified as the next step, conditional on Altona’s general success. Its planned starting configuration called for at least 16,384 validators. Separately, the Foundation announced a continuation grant for Sigma Prime’s beacon-fuzz, a multi-client differential fuzzing effort that had found bugs in every client onboarded to the system.