Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Public addresses #290

Open
Alf71 opened this issue Sep 26, 2022 · 0 comments
Open

Public addresses #290

Alf71 opened this issue Sep 26, 2022 · 0 comments

Comments

@Alf71
Copy link

Alf71 commented Sep 26, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant