ewasm / testnet

Testnet planning & documentation
64 stars 19 forks source link

is there any example of webassembly contract? #149

Closed nkbai closed 5 years ago

nkbai commented 5 years ago
  1. can I deploy a private chain enable ewasm?
  2. how to write ewasm contract using golang?
gballet commented 5 years ago
  1. You can. Look at ewasm.ethereum.org to get an example of a genesis block.
  2. Golang isn't the language for writing WASM contracts (or WASM anything, really) because its support is still experimental, and the produced binaries are huge. Have a look at those Rust contract examples https://github.com/ewasm/rust-ewasm instead.