Skip to content
:octocat: A JavaScript implementation of node-bignum
JavaScript HTML
Branch: master
Clone or download
Pull request Compare This branch is 6 commits ahead of bored-engineer:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test Reduced the number of div tests Nov 8, 2013
.gitignore ♻️ Fix typescript definition Mar 13, 2019
.npmignore Cleaned npmignore Dec 10, 2013
LICENCE Initial commit. Publish. Nov 8, 2012
README.md 💅 Update package name Mar 13, 2019
bignum.d.ts 💅 Update package name Mar 13, 2019
bignum.js 💅 Update package name Mar 13, 2019
package-lock.json
package.json ⬆️ Update version Mar 13, 2019

README.md

@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.

You can’t perform that action at this time.