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: