refu-lang / refu

Refu language
21 stars 4 forks source link

Using Refu in eWASM to write Ethereum contracts #36

Open axic opened 7 years ago

axic commented 7 years ago

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.)

LefterisJP commented 7 years ago

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?

pferdy commented 6 months ago

Convex has developed big integer arithmetic >64 bits.