SamWilsn
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# Executable Spec instead of Core EIPs ## Discussion link https://ethereum-magicians.org/t/core-eips-in-an-executable-spec-world/8640 --- ## Contents [toc] ## Context Today, [Core EIPs](https://eips.ethereum.org/core) are used to specify changes affecting the execution layer (EL) which need to be activated through coordinated network upgrades (a.k.a. soft/hard forks). Core EIPs currently serve two purposes: explaining the motivation/rationale/security implications of the change and formally specifying it. While the former is very useful, and helps the Ethereum community understand and debate changes, the latter isn't ideal for a few reasons: 1. The EIP format is very different than the "full specification" for the EL, the Yellow Paper. The YP often lags behind network upgrades for several months before reflecting the current state of the network. This means the actual specification is often "Yellow Paper + EIPs A, B, C" 2. Complex EIPs which touch several parts of Ethereum, e.g. [EIP-1559](https://eips.ethereum.org/EIPS/eip-1559), can require authors re-write a "skeleton spec" for Ethereum to highlight the changes they introduce. 3. The consensus layer (CL) uses a different process: an [executable specification](https://github.com/ethereum/consensus-specs/) on which changes are directly proposed as a diff. Changes' motivation/rationale/security implications are not generally detailled in EIPs. We now (almost!) have an executable specification for the EL as well ([link](https://github.com/ethereum/execution-specs/#consensus-specification-work-in-progress)). Here is a proposal for how we could harmonize the process across EL + CL. ## Constraints A few things we are trying to optimize for here: 1. **EIP Editors bandwidth**: EIP Editors are part time volunteers with incredibly high opportunity cost. We already have less than we would like, and we need to make sure we don't burn out or drive away the ones we do have. * **Links**: One particularly challenging topic for EIP editors is external links. Currently, they aren't allowed. Because links vary in quality and degrade over time, making a judgement call about them is something that adds a ton of overhead to EIP editors. 3. **Coherent process across EL + CL:** while it's OK if there are small differences between the EL & CL processes, post-merge, there is just one Ethereum. We need to make sure that the overall process is coherent across both the EL + CL layers, and legible to the broader Ethereum community. 4. **Varying Quality of EIPs**: EIPs are open for anyone to submit, which, while good, leads to a lot of stale, poor quality, duplicate, etc. proposals. We need to make sure that these can be easily triaged from potential proposals for an upgrade and from EIPs which have been included in an upgrade. 5. **EIP Champions bandwidth**: It's hard to get an EIP implemented in a network update, we want to make sure we're not creating unnecessary work for the people who endeavour to try. ## High Level Proposal Separate Core EIPs from other EIP categories, and store them directly in the executable and consensus spec repositories. The technical "Specification" section would instead be represented by the accompanying changes to the specification itself, while the other text-based sections would remain as they exist currently. ## Implementation Details ### EIP Location & Format Currently all EIPs live in the [`ethereum/EIPs`](https://github.com/ethereum/EIPs) repository. Under this proposal, Core EIPs would instead live in [`ethereum/execution-specs`](https://github.com/ethereum/execution-specs) and [`ethereum/consensus-specs`](https://github.com/ethereum/consensus-specs) under a subdirectory. Core EIPs would now be formatted with reStructuredText for consistency with the inline documentation. ### Core EIPs Template Make the following changes to the [template](https://github.com/ethereum/EIPs/blob/master/eip-template.md): > #### Specification Remove the section entirely. > #### Test Cases TBD. > #### Reference Implementation Remove this section. #### Notes: * This will require maintaining two templates: one for Core EIPs and one for everything else. While this isn't the end of the world, we should be mindful of it. ### Executable Specifications Use branches to highlight EIPs in various stages, specifically: * `master`: what is currently live on the Ethereum mainnet * `forks/$FORK_NAME`: PR target branch for EIPs slated for inclusion in `$FORK_NAME` * `eips/$EIP_NUMBER/$FORK_NAME`: a specific EIP's specification, targeting a specific fork When an EIP goes from being proposed for a specific fork to being [Considered for Inclusion](https://github.com/ethereum/execution-specs/tree/master/network-upgrades#definitions) for it, merge `eips/$EIP_NUMBER/$FORK_NAME` into `forks/$FORK_NAME`. When `$FORK_NAME` is deployed on mainnet, merge it into `master`. This means that specifications for historical EIPs will forever live as branches in the executable spec repository. If the EIP wants to be proposed for another fork, an author must update its branch by rebasing it off `master` and creating a new `eips/$EIP_NUMBER/$FORK_NAME` branch. ### EIP Process Currently, Core EIPs roughly follow this process: | Stage | Name | EIP Location | Description | | ----- | -------- | -------- | -------- | | 0 | Pre-Draft | _any git repository_ | Open PR in `ethereum/EIPs`, no requirements | | 1 | Draft | _`ethereum/EIPs master`_ | Meets minimum requirements in EIP-1 | | 2 | Review | _`ethereum/EIPs master`_ | EIP is fully specified, but changes are expected. | | 3 | Last Call | _`ethereum/EIPs master`_ | Changes are no longer expected to the EIP. Required before testnet deployements. | | 4 | Final | _`ethereum/EIPs master`_ | EIP is live on mainnet. Material changes are no longer possible. | Instead if we, as an example, combine this with the Executable Specifications flow, we get: | Stage | Name | EIP Location | Description | | ----- | -------- | -------- | -------- | | 0 | Pre-Draft | _any git repository_ | Open PR in `ethereum/execution-specs`, no requirements. | | 1 | Draft | _`ethereum/execution-specs eips/4444/london`_ | Meets minimum requirements in EIP-1 | | 2 | Review | _`ethereum/execution-specs eips/4444/london`_ | EIP is fully specified, but changes are expected. | | 3 | Last Call | _`ethereum/execution-specs eips/4444/london`_ | Changes are no longer expected to the EIP. Required before testnet deployements. | | 4 | Final | _`ethereum/execution-specs forks/london`_ | Material changes are no longer possible. | Note: this would apply across both the EL **and CL**, implying that CL changes would also require an EIP for specification. ### Automation What parts can we get a bot to do here? * Verifying that EIPs meet the template * Need to handle Core vs. Non-Core EIPs * Need to allow links to specs, and nothing else * Merging specs PRs when EIPs are merged * Requires monitoring two repositories. Is this possible?

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully