elliptic icon indicating copy to clipboard operation
elliptic copied to clipboard

Public addresses

Open Alf71 opened this issue 2 years ago • 0 comments

Hi,

var keyPair = ec.keyFromPrivate(k);
 var priv = keyPair.getPrivate("hex");
 var pubKey = keyPair.getPublic();
 var p = pubKey.encodeCompressed("hex");

How do I get the public addresses (comp and uncomp) or RMD160 from this? Thanks in advance

Alf71 avatar Sep 26 '22 15:09 Alf71