GithubHelp home page GithubHelp logo

design's Introduction

Ethereum flavored WebAssembly (eWASM) Design

This repository contains documents describing the design and high-level overview of eWASM. Expect the contents of this repository to be in flux: everything is still under discussion.

What is WebAssembly?

WebAssembly (or WASM for short) is a new, portable, size- and load-time-efficient format. WebAssembly is currently being designed as an open standard by a W3C Community Group.

Please review the WebAssembly design and instruction set first.

A few key points:

  • WebAssembly defines an instruction set, intermediate source format (WAST) and a binary encoded format (WASM).
  • WebAssembly has a few higher level features, such as the ability to import and execute outside methods defined via an interface.
  • LLVM includes a WebAssembly backend to generate WASM output.
  • Major browser JavaScript engines will notably have native support for WebAssembly, including but not limited to: Google's V8 engine (Node.js and Chromium-based browsers), Microsoft's Chakra engine (Microsoft Edge), Mozilla's Spidermonkey engine (Firefox and Thunderbird).
  • Other non-browser implementations exist too: wasm-jit-prototype (a standalone VM using an LLVM backend), wabt (a stack-based interpreter), ml-proto (the OCaml reference interpreter), etc.

What is Ethereum flavored WebAssembly (eWASM)?

eWASM is a restricted subset of WASM to be used for contracts in Ethereum.

eWASM:

Goals of the eWASM project

  • To provide a specification of eWASM contract semantics and the Ethereum interface
  • To provide an EVM transpiler, preferably as an eWASM contract
  • To provide a metering injector, preferably as an eWASM contract
  • To provide a VM implementation for executing eWASM contracts
  • To implement an eWASM backend in the Solidity compiler
  • To provide a library and instructions for writing contracts in Rust
  • To provide a library and instructions for writing contracts in C

Glossary

  • eWASM contract: a contract adhering to the eWASM specification
  • Ethereum environment interface (EEI): a set of methods available to eWASM contracts
  • metering: the act of measuring execution cost in a deterministic way
  • metering injector: a transformation tool inserting metering code to an eWASM contract
  • EVM transpiler: an EVM bytecode (the current Ethereum VM) to eWASM transcompiler

Resources

Projects

Design Process & Contributing

For now, high-level design discussions should continue to be held in the design repository, via issues and pull requests. Feel free to file issues.

Chat

Matrix
IRC freenode@ewasm
Gitter

design's People

Contributors

axic avatar wanderer avatar bnjbvr avatar gcolvin avatar

Watchers

James Cloos avatar Jim Huang avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.