refu
refu copied to clipboard
Using Refu in eWASM to write Ethereum contracts
With #34 in place it seems to be possible emitting WebAssembly from Refu.
In order to write contracts, the following is needed:
- A bignumber library, perhaps optimised for 256 bit numbers.
- A standard library specifying the
foreign_import
s for all the Ethereum interface methods. - A framework providing high level Ethereum features (built on top of 1. and 2.)
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?
Convex has developed big integer arithmetic >64 bits.