Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bn.js

Package Overview
Dependencies
Maintainers
1
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bn.js - npm Package Compare versions

Comparing version 4.10.0 to 4.10.1

2

package.json
{
"name": "bn.js",
"version": "4.10.0",
"version": "4.10.1",
"description": "Big number implementation in pure javascript",

@@ -5,0 +5,0 @@ "main": "lib/bn.js",

@@ -80,2 +80,8 @@ /* global describe, it */

});
it('should throw error with num eq 0x4000000', function () {
assert.throws(function () {
new BN(0).iaddn(0x4000000);
});
});
});

@@ -158,2 +164,8 @@

});
it('should throw error with num eq 0x4000000', function () {
assert.throws(function () {
new BN(0).isubn(0x4000000);
});
});
});

@@ -277,2 +289,8 @@

});
it('should throw error with num eq 0x4000000', function () {
assert.throws(function () {
new BN(0).imuln(0x4000000);
});
});
});

@@ -279,0 +297,0 @@

@@ -234,2 +234,11 @@ /* global describe, it */

});
it('K256.split for 512 bits number should return equal numbers', function () {
var red = BN.red('k256');
var input = new BN(1).iushln(512).subn(1);
assert.equal(input.bitLength(), 512);
var output = new BN(0);
red.prime.split(input, output);
assert.equal(input.cmp(output), 0);
});
});

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc