This commit is contained in:
Fedor Indutny
2019-09-03 19:34:13 -07:00
parent 7ec66ffa25
commit 71e4e8e2f5
4 changed files with 14 additions and 13 deletions
+9 -8
View File
@@ -1437,8 +1437,9 @@ Point.prototype.getY = function getY() {
Point.prototype.mul = function mul(k) {
k = new BN(k, 16);
if (this._hasDoubles(k))
if (this.isInfinity())
return this;
else if (this._hasDoubles(k))
return this.curve._fixedNafMul(this, k);
else if (this.curve.endo)
return this.curve._endoWnafMulAdd([ this ], [ k ]);
@@ -8796,7 +8797,7 @@ utils.encode = function encode(arr, enc) {
},{}],35:[function(require,module,exports){
module.exports={
"name": "elliptic",
"version": "6.5.0",
"version": "6.5.1",
"description": "EC cryptography",
"main": "lib/elliptic.js",
"files": [
@@ -8828,19 +8829,19 @@ module.exports={
"homepage": "https://github.com/indutny/elliptic",
"devDependencies": {
"brfs": "^1.4.3",
"coveralls": "^2.11.3",
"grunt": "^0.4.5",
"coveralls": "^3.0.4",
"grunt": "^1.0.4",
"grunt-browserify": "^5.0.0",
"grunt-cli": "^1.2.0",
"grunt-contrib-connect": "^1.0.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-uglify": "^1.0.1",
"grunt-mocha-istanbul": "^3.0.1",
"grunt-saucelabs": "^8.6.2",
"grunt-saucelabs": "^9.0.1",
"istanbul": "^0.4.2",
"jscs": "^2.9.0",
"jscs": "^3.0.7",
"jshint": "^2.6.0",
"mocha": "^2.1.0"
"mocha": "^6.1.4"
},
"dependencies": {
"bn.js": "^4.4.0",
+3 -3
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "elliptic",
"version": "6.5.0",
"version": "6.5.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "elliptic",
"version": "6.5.0",
"version": "6.5.1",
"description": "EC cryptography",
"main": "lib/elliptic.js",
"files": [