refu icon indicating copy to clipboard operation
refu copied to clipboard

Using Refu in eWASM to write Ethereum contracts

Open axic opened this issue 8 years ago • 2 comments

With #34 in place it seems to be possible emitting WebAssembly from Refu.

In order to write contracts, the following is needed:

  1. A bignumber library, perhaps optimised for 256 bit numbers.
  2. A standard library specifying the foreign_imports for all the Ethereum interface methods.
  3. A framework providing high level Ethereum features (built on top of 1. and 2.)

axic avatar Feb 20 '17 17:02 axic

Implementing Ethereum contracts in Refu would be a really nice feature as we discussed offline.

Regarding (1) I believe the natural choice for C and big numbers would be GMP. Are you aware of any other big number libraries?

LefterisJP avatar Feb 26 '17 15:02 LefterisJP

Convex has developed big integer arithmetic >64 bits.

pferdy avatar Jan 27 '24 14:01 pferdy