Comparing version 0.15.11 to 0.15.12
@@ -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); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
135314
3601
+ Addedbn.js@0.15.2(transitive)
- Removedbn.js@0.14.2(transitive)
Updatedbn.js@^0.15.0