Hot answers tagged

5

The project is still ongoing: https://github.com/ewasm/evm2wasm WASM seems more secure, also, webassembly is backed by Google, Apple and Microsoft, the community is also active, it's gonna be a widely used platform. So embrace WASM will be a really good choice. I'm also looking for the benchmark ...


5

The de-facto Hello World contract is WRC-20, which is essentially a subset of ERC20 implemented in Ewasm.It is implemented in a few languages as an example. In C: https://github.com/ewasm/wrc20-examples/blob/3553ea7c87fcb1012e6d76c28ba0cbe878fe55c2/C/wrc20.c In Rust, also implementing all of WRC20: https://github.com/hugo-dc/wrc20-rust/blob/master/src/...


2

The Webassembly(wasm) gives you more compatibility, portability, optimization than LLVM IR. wasm makes transactions faster and thus creates a better environment for smart contracts(It allows you to write contracts in any LLVM languages that's the reason for moving forward from EVM to eWASM) LLVM IR: 1) by default the IR is not portable >> the same program ...


2

Actually the solidity compiler can output ewasm already. So you do not have to use another language if you do not want. But I do not think the change is imminent. It will take some time until changes arrive to mainnet.


1

If the consensus mechanism is stored in the blockchain as WASM code and every client comes with a WASM interpreter, no forks are required anymore since every client can fallback to WASM code in the blockchain if it figures out it's own local consensus rule is outdated. Example: Client verifies block using it's local consensus rules Client fails to verify ...


1

A stack-based machine can be easier to implement than a register-based one, and I assume that was ultimately the decision-making factor here. The document "A Prehistory of the Ethereum Protocol" linked above hints at that. WebAssembly is also stack-based, however the assembly is designed to be structured: blocks are explicitly terminated by an END ...


1

Take it for a spin and find out https://github.com/paritytech/pwasm-tutorial https://www.youtube.com/watch?time_continue=1176&v=Adcn-L59LRs


1

It's deployed on the kovan testnet but not on the mainnet.


1

You do not need to write contract in eWASM. Just write it using solidity, and it will be converted to EVM bytecode, then eWASM. As I know so far, the eWASM is only available on Kovan testnet, so you may need to use parity to test it out if you're interested.


Only top voted, non community-wiki answers of a minimum length are eligible