Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

bn

keybase676.9kBSD-3-Clause1.0.5

JS Bigint import

readme

bn

JS Bigint Import

changelog

1.0.5 (2019-09-24)

  • Fix bug for Webpack

1.0.4 (2019-07-31)

  • Update deps to fix bad lodash

1.0.3 (2019-02-19)

  • Fix dev deps found via audit

1.0.2 (2019-02-01)

  • migrate (new Buffer) -> Buffer.from or Buffer.alloc

1.0.1 (2014-06-16)

Bugfixes:

  • toDERInteger returns a byteArray, and not a buffer

1.0.0 (2014-06-16)

Features:

  • Pad parameter to toBuffer
  • Get negative bignums working
  • Get toDER and fromDER working properly, in pure and fast
  • Incorporated tests from bn.js and bigi
  • Get benchmarks running too.
  • Add .byteLength() calls to both

0.0.6 (2014-06-13)

Features:

  • Various fixes to be compatible with the bigi package.

0.0.5 (2014-06-13)

Features:

  • abs() method

0.0.4 (2014-06-13)

Features:

  • Inspect functions for pretty-printing in the console

0.0.3 (2014-06-13)

Features:

  • New method -- x.pow(y), without modulo