mpint

Efficient multiprecision int in Nim


Keywords
library, math, numbers, arbitrary-precision, arm, bigint, biginteger, bignum, bignumber, blockchain, cryptography, embedded, ethereum, mips, multi-precision, nim, number-theory, risc-v
License
Apache-2.0
Install
nimble install mpint

Documentation

Mpint (Multi-precision integers)

License: MIT Stability: experimental

A fast and portable multi-precision integer library in pure Nim

Main focus:

  • no heap/dynamic allocation
  • uint256 for cryptographic and ethereum blockchain usage.
  • ARM portability for usage on mobile phones
  • Ease of use:
    • casting to and from array of bytes
    • converting to and from Hex
    • converting to and from decimal strings