This package has been deprecated

Author message:

Package no longer supported.

@liskhq/bignum

1.3.1 • Public • Published

@liskhq/bignum

A JavaScript implementation of node-bignum forked from the wonderful work done by MikeMcl as bignumber.js

Usage

API functionality should be identical to that of node-bignum. However, a few methods are missing:

  • BigNumber.prime(bits, safe=true)
  • .and(n)
  • .or(n)
  • .xor(n)
  • .invertm(n)
  • .rand()
  • .probPrime()
  • .root(n)
  • .shiftLeft(n)
  • .shiftRight(n)
  • .gcd(n)
  • .jacobi(n)

I have no intention of implementing them if you would like to do so and submit a pull request I would happily accept it. I wrote this library so I could browserify node-srp which does not require any of the above mentioned methods.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @liskhq/bignum

    Weekly Downloads

    28

    Version

    1.3.1

    License

    MIT

    Unpacked Size

    66.7 kB

    Total Files

    5

    Last publish

    Collaborators

    • ishantiw
    • juanglisk
    • shuse2