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
var elliptic = require('elliptic');
var ec = new elliptic.ec('secp256k1');
var publicKeyUncompressed = ec.keyFromPublic(PublicKeyCompressed, 'hex').getPublic(false, 'hex');
Hi,
decompressPublickey
doesn't work at this moment. Actually, it is equal toundefined
. This is due to the following commit in https://github.com/bitcoin/secp256k1bitcoin-core/secp256k1@23cfa91#diff-0d77700fa6e05639431c962ffaa5365aL285
Here
secp256k1_ec_pubkey_decompress
was removed from the code, so decompressPublickey references nothing.After all, I just want to decompress a compressed public key in node to encrypt a message with ECIES encryption having just a compressed key.
What should I do in this situation?
Thanks in advance, Hovhannes.
The text was updated successfully, but these errors were encountered: