minor bug fix

Added definition of curve when decompressing public key
This commit is contained in:
tripathyr 2022-09-21 01:36:48 +05:30 committed by GitHub
parent 218f084abb
commit 1d08007754
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2627,6 +2627,7 @@
coinjs.compressedToUncompressed = function (compressed) {
var t1, t2;
var curve = EllipticCurve.getSECCurveByName("secp256k1");
t1 = curve.curve.decodePointHex(compressed);
t2 = curve.curve.encodePointHex(t1);
return t2;