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.

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

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

  • 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 '18 at 5:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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