HackMD
    • Sharing Link copied
    • /edit
    • View mode
      • Edit mode
      • View mode
      • Book mode
      • Slide mode
      Edit mode View mode Book mode Slide mode
    • 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
    • More (Comment, Invitee)
    • Publishing
    • Commenting Enable
      Disabled Forbidden Owners Signed-in users Everyone
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Invitee
    • No invitee
    • Options
    • Versions and GitHub Sync
    • Transfer ownership
    • Delete this note
    • Template
    • Save as template
    • Insert from template
    • Export
    • Google Drive Export to Google Drive
    • Gist
    • Import
    • Google Drive Import from Google Drive
    • Gist
    • Clipboard
    • Download
    • Markdown
    • HTML
    • Raw HTML
Menu Sharing Help
Menu
Options
Versions and GitHub Sync Transfer ownership Delete this note
Export
Google Drive Export to Google Drive Gist
Import
Google Drive Import from Google Drive Gist Clipboard
Download
Markdown HTML Raw HTML
Back
Sharing
Sharing Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
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
More (Comment, Invitee)
Publishing
More (Comment, Invitee)
Commenting Enable
Disabled Forbidden Owners Signed-in users Everyone
Permission
Owners
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Invitee
No invitee
   owned this note    owned this note      
Published Linked with GitHub
Like BookmarkBookmarked
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# Doing Stateless Ethereum Right We need to change our approach for implementing Stateless Ethereum. At present, the effort is on track to deliver protocol changes that reduce witness sizes. Beyond this, the roadmap is unclear on how we get to the end goal of allowing clients to process blocks in a stateless manner. I propose a fundamental change in how we deliver on this goal that removes external dependencies and should deliver meaningful changes to the protocol. ## Problems with our current approach ### A: Stateless clients will be of limited use The current roadmap is focused on delivering stateless block execution by reducing witness size and producing block witnesses. This will require a new gossip network, because a client without the state would be unable to participate in the `ETH` protocol without the state and chain history. The **only** thing that such a client would be capable of doing would be following the tip of the chain and executing blocks as they arrive, verifying the block state root. These client would explicitly **not** be able to do any of the following: - send transactions or participate in transaction gossip - expose the majority of the JSON-RPC API This limited client is not useful for the vast majority of the use cases people use clients for, and is probably **only** useful in the context of eth2 infrastructure. ### B: Unlikely to happen until Eth2 Because the current roadmap only allows for [clients with limited usefulness](#A-Stateless-clients-will-be-of-limited-use) and that usefulness is primarily focused on Eth2, it seems unlikely that development will be prioritized until the Eth2 merge is firmly on the horizon. ### C: Status Quo vs Meaningful change The current roadmap still reenforces the status quo. Interacting with the Ethereum protocol will still require either running a *heavy* client or using a centralized provider. The current protocols aren't going to deliver functional lightweight clients. The current roadmap is not going to deliver a functional lightweight stateless client. Delivering on functional lightweight clients is a high value goal that we should be putting resources towards. Existing clients should see benefits from this effort as well, such as making it easier to free up disk space used for ancient chain data. ## Expanding the roadmap I propose that we expand the "Stateless Ethereum" effort to unclude the work necessary to deliver stateless clients that are capable of exposing the JSON-RPC API. This does not change or de-prioritize existing efforts to enable stateless block execution. It is a purely additive change that expands scope to include building the necessary infrastructure to support the desired functionality. ### New Definition of Scope The scope of "stateless ethereum" would be the following. This list tries to capture the functionality necessary to have a useful client that performs stateless block execution. - Block execution via witnesses - Maybe transaction level witnesses - Solution: Research needed. Maybe access lists in new transaction types - Maybe block level witnesses - Solution: Research needed. - Need witness gossip - Solution: Binary trie to reduce size - Solution: Code merklization to reduce size - Solution: Research needed for gossip mechanism. - The ability to run a useful client that holds zero state. - New transaction pool logic to allow transaction validation without the assumption of local state. - Solution: Research needed. Maybe small account proofs for balance and nonce? - Access to block gossip without requiring client to hold full state (or chain history) - Solution: Alternative Gossip Network - The ability to serve JSON-RPC without the state - On demand access to the state - Solution: State network - On demand access to the chain history - Solution: Chain history network ### New areas of research focus The above breaks down into the following areas of research. - Gossip - A new gossip network that is conducive to clients participating who do not hold the state or full chain history. - Transaction gossip without access to the state. - Witnesses (eventually) - New blocks - A way to bridge this new network with the existing `ETH` DevP2P gossip. - State Network - On demand access to recent state (~256 blocks) - Chain History - On demand access to headers/blocks/receipts - Canonical Indices - `block_number -> block_hash` - `transaction_hash -> (block_hash, transaction_index)` We should provide funding for researchers interested in dedicating their time towards these topics. ### Dedicated client implementations The architecture of a stateless client that exposes the JSON-RPC API is going to be fundamentally different from existing client architecture. We should not expect existing client teams to implement this functionality. We should provide funding for new client teams who wish to build out these new lightweight stateless clients. ### Avenues for Funding https://esp.ethereum.foundation/en/ Teams should initially seek funding through the Ethereum Foundation Ecosystem Support Program, aka ESP. If you are interested in working on this effort, you should submit a grant application for funding. I (piper) will be working to secure longer term funding for teams that secure initial funding through ESP. Specifics will be handled on a case-by-case basis. ### Timeline We should be focused on delivering functionality on a tight iteration cycle. The development of these new pieces of peer-to-peer infrastructure and clients should be able to move at a quick pace with a tight feedback loop. Rough estimations suggest we should be capable of delivering valuable functionality on a quick timeline (~12 months). - 2021 - Q1 - Establish research teams and client development teams - Draft specification for state network - Draft specification for chain history network - Initial exploratory research into gossip network - Begin initial client prototypes for both state and chain history networks - Q2 - Research complete to prove state network approach is viable - Research complete to prove chain history network is viable - Draft specification for gossip network - Initial testnets for state and chain history networks - Client prototypes for gossip network - Prototype for "bridge" from `ETH` DevP2P network - Q3 - Research complete to prove gossip network approach is viable - Stable specification for state network - Stable specification for chain history network - Testnet for gossip network - Q4 - Stable specification for gossip network - Clients are able to begin moving from POC/MVP to production focus. - Launch of longer lived testnets.

Import from clipboard

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 lost 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?

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

Sign in via SAML

or

Sign in via GitHub

Help

  • English
  • 中文
  • 日本語

Documents

Tutorials

Book Mode Tutorial

Slide Example

YAML Metadata

Resources

Releases

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

Versions and GitHub Sync

Sign in to link this note to GitHub Learn more
This note is not linked with GitHub Learn more
 
Add badge Pull Push GitHub Link Settings
Upgrade now

Version named by    

More Less
  • Edit
  • Delete

Note content is identical to the latest version.
Compare with
    Choose a version
    No search result
    Version not found

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. Learn more

       Sign in to GitHub

      HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.

      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
      Available push count

      Upgrade

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Upgrade

      Danger Zone

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

      Syncing

      Push failed

      Push successfully