indutny / elliptic

Fast Elliptic Curve Cryptography in plain javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Public addresses

Alf71 opened this issue · comments

commented

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