Skip to main content

Eth2 spec, provided as Python package for tooling and testing

Project description

Ethereum Proof-of-Stake Consensus Specifications

Join the chat at https://discord.gg/qGpsxSA Join the chat at https://gitter.im/ethereum/sharding

To learn more about proof-of-stake and sharding, see the PoS FAQ, sharding FAQ and the research compendium.

This repository hosts the current Ethereum proof-of-stake specifications. Discussions about design rationale and proposed changes can be brought up and discussed as issues. Solidified, agreed-upon changes to the spec can be made through pull requests.

Specs

GitHub release PyPI version

Core specifications for Ethereum proof-of-stake clients can be found in specs. These are divided into features. Features are researched and developed in parallel, and then consolidated into sequential upgrades when ready.

The current features are:

Phase 0

Altair

Bellatrix (as known as The Merge)

The Bellatrix protocol upgrade is still actively in development. The exact specification has not been formally accepted as final and details are still subject to change.

Sharding

Sharding follows Bellatrix, and is divided into three parts:

Accompanying documents can be found in specs and include:

Additional specifications for client implementers

Additional specifications and standards outside of requisite client functionality can be found in the following repos:

Design goals

The following are the broad design goals for the Ethereum proof-of-stake consensus specifications:

  • to minimize complexity, even at the cost of some losses in efficiency
  • to remain live through major network partitions and when very large portions of nodes go offline
  • to select all components such that they are either quantum secure or can be easily swapped out for quantum secure counterparts when available
  • to utilize crypto and design techniques that allow for a large participation of validators in total and per unit time
  • to allow for a typical consumer laptop with O(C) resources to process/validate O(1) shards (including any system level validation such as the beacon chain)

Useful external resources

For spec contributors

Documentation on the different components used during spec writing can be found here:

Consensus spec tests

Conformance tests built from the executable python spec are available in the Ethereum Proof-of-Stake Consensus Spec Tests repo. Compressed tarballs are available in releases.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eth2spec-1.1.8.tar.gz (507.3 kB view details)

Uploaded Source

Built Distribution

eth2spec-1.1.8-py3-none-any.whl (581.0 kB view details)

Uploaded Python 3

File details

Details for the file eth2spec-1.1.8.tar.gz.

File metadata

  • Download URL: eth2spec-1.1.8.tar.gz
  • Upload date:
  • Size: 507.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for eth2spec-1.1.8.tar.gz
Algorithm Hash digest
SHA256 a416ab55a1db7443f1e4eb33c57958c8e684e15c3b76211a44f92f9b6c97ead2
MD5 a7b93ffcff51db5190377f66cacc8964
BLAKE2b-256 c037b11e34049ecb2b45e580946360da9b6d46333cec6933e692ca0601aebf0a

See more details on using hashes here.

File details

Details for the file eth2spec-1.1.8-py3-none-any.whl.

File metadata

  • Download URL: eth2spec-1.1.8-py3-none-any.whl
  • Upload date:
  • Size: 581.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for eth2spec-1.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6f11ee8267f3303dd23eda9b53ae79d4e3409126ec9a468d93b5ad8c1ee3e876
MD5 9e0a3a803b889ea1c6e4157da68f5b83
BLAKE2b-256 a8f1f120b8f15380423bf5d0eb5c72931b16a80fd6514bc3ec06190f790e326d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page