Skip to content

host based 128 bit arithmetics

Latest
Compare
Choose a tag to compare
@christian-rogobete christian-rogobete released this 16 Sep 21:37

We have implemented arithm128.ts which offers many functions for working with positive and negative 128 bit numbers. They use the {i,u}256 functions on the host environment to perform the calculations.

This is the new recommended way to work with 128 bit numbers. All example contracts that need 128 bit numbers such as the token contract are now also using the functions from arithm128.ts.