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

elliptic

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elliptic - npm Package Compare versions

Comparing version 0.15.11 to 0.15.12

6

lib/elliptic/curve/edwards.js

@@ -129,5 +129,5 @@ var assert = require('assert');

return '<EC Point Infinity>';
return '<EC Point x: ' + this.x.fromRed().toString(16) +
' y: ' + this.y.fromRed().toString(16) +
' z: ' + this.z.fromRed().toString(16) + '>';
return '<EC Point x: ' + this.x.fromRed().toString(16, 2) +
' y: ' + this.y.fromRed().toString(16, 2) +
' z: ' + this.z.fromRed().toString(16, 2) + '>';
};

@@ -134,0 +134,0 @@

@@ -66,4 +66,4 @@ var assert = require('assert');

return '<EC Point Infinity>';
return '<EC Point x: ' + this.x.fromRed().toString(16) +
' z: ' + this.z.fromRed().toString(16) + '>';
return '<EC Point x: ' + this.x.fromRed().toString(16, 2) +
' z: ' + this.z.fromRed().toString(16, 2) + '>';
};

@@ -70,0 +70,0 @@

@@ -357,4 +357,4 @@ var assert = require('assert');

return '<EC Point Infinity>';
return '<EC Point x: ' + this.x.fromRed().toString(16) +
' y: ' + this.y.fromRed().toString(16) + '>';
return '<EC Point x: ' + this.x.fromRed().toString(16 ,2) +
' y: ' + this.y.fromRed().toString(16, 2) + '>';
};

@@ -889,5 +889,5 @@

return '<EC JPoint Infinity>';
return '<EC JPoint x: ' + this.x.toString(16) +
' y: ' + this.y.toString(16) +
' z: ' + this.z.toString(16) + '>';
return '<EC JPoint x: ' + this.x.toString(16, 2) +
' y: ' + this.y.toString(16, 2) +
' z: ' + this.z.toString(16, 2) + '>';
};

@@ -894,0 +894,0 @@

@@ -93,3 +93,3 @@ var assert = require('assert');

if (enc === 'hex')
return this.priv.toString(16);
return this.priv.toString(16, 2);
else

@@ -143,4 +143,4 @@ return this.priv;

KeyPair.prototype.inspect = function inspect() {
return '<Key priv: ' + (this.priv && this.priv.toString(16)) +
return '<Key priv: ' + (this.priv && this.priv.toString(16, 2)) +
' pub: ' + (this.pub && this.pub.inspect()) + ' >';
};
{
"name": "elliptic",
"version": "0.15.11",
"version": "0.15.12",
"description": "EC cryptography",

@@ -31,3 +31,3 @@ "main": "lib/elliptic.js",

"dependencies": {
"bn.js": "^0.14.1",
"bn.js": "^0.15.0",
"hash.js": "^0.2.0",

@@ -34,0 +34,0 @@ "inherits": "^2.0.1"

@@ -23,2 +23,3 @@ var assert = require('assert');

assert(keys.getPrivate().length > 0);
assert.equal(keys.getPrivate('hex').length, 64);
assert(keys.getPublic('hex').length > 0);

@@ -25,0 +26,0 @@ assert(keys.getPrivate('hex').length > 0);

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