4

Is there a library that will let me store big ints and then perform arithmetic on them in eos smart contracts? I was trying to use the multiprecision library in boost but kept on getting an error: https://github.com/EOSIO/eos/issues/4350

Performing arithmetic on the provided checksum256 type is not so easy as it is just an array of smaller ints.

2
  • How big of integers are you looking for? The smart contracts support uint128_t natively. Jun 27, 2018 at 21:39
  • @JohnHaager 256 bits
    – cookiekid
    Jun 28, 2018 at 1:34

1 Answer 1

6

Yes, there's a big integer library for EOS.IO made by PlayerOne.

1
  • 3
    this library is quite outdated. I had to make quite a few changes to get it to compile. Seems to be working so far though.
    – cookiekid
    Jun 29, 2018 at 5:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.