minor bug fix
Added definition of curve when decompressing public key
This commit is contained in:
parent
218f084abb
commit
1d08007754
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user