Comparing version 3.6.1 to 3.6.2
@@ -133,3 +133,6 @@ 'use strict' | ||
return Buffer.from(ecparams.g.mul(tweak).add(pair.pub).encode(true, compressed)) | ||
var point = ecparams.g.mul(tweak).add(pair.pub) | ||
if (point.isInfinity()) throw new Error(messages.EC_PUBLIC_KEY_TWEAK_ADD_FAIL) | ||
return Buffer.from(point.encode(true, compressed)) | ||
} | ||
@@ -136,0 +139,0 @@ |
@@ -81,3 +81,6 @@ 'use strict' | ||
return g.mul(tweak).add(point).toPublicKey(compressed) | ||
var result = g.mul(tweak).add(point) | ||
if (result.inf) throw new Error(messages.EC_PUBLIC_KEY_TWEAK_ADD_FAIL) | ||
return result.toPublicKey(compressed) | ||
} | ||
@@ -84,0 +87,0 @@ |
{ | ||
"name": "secp256k1", | ||
"version": "3.6.1", | ||
"version": "3.6.2", | ||
"description": "This module provides native bindings to ecdsa secp256k1 functions", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
1001652
2300