You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to run the example from the README to recover the public key from a signature sig.recoverPublicKey(msg) === pub; // public key recovery
which results actually as false.
I saw in the test the secp256k1.getPublicKey(priv); gets wrapped into a Point object const publicKey = Point.fromHex(secp.getPublicKey(privateKey)).toHex(false);
which isn't that expected using the library.
I would expect to get an Uint8Array back when calling sig.recoverPublicKey(msg)
I tried to run the example from the README to recover the public key from a signature
sig.recoverPublicKey(msg) === pub; // public key recovery
which results actually as false.
I saw in the test the
secp256k1.getPublicKey(priv);
gets wrapped into a Point objectconst publicKey = Point.fromHex(secp.getPublicKey(privateKey)).toHex(false);
which isn't that expected using the library.
I would expect to get an Uint8Array back when calling
sig.recoverPublicKey(msg)
Test code:
The text was updated successfully, but these errors were encountered: