xrpl.js icon indicating copy to clipboard operation
xrpl.js copied to clipboard

Feature request: derive public key from private key @ripple-keypairs

Open khancode opened this issue 3 years ago • 1 comments

We should add a method such as derivePublicKey that takes a private key and derives a public key.

Original issue: https://github.com/ripple/ripple-keypairs/issues/168

khancode avatar Nov 19 '21 04:11 khancode

I put together a draft pull request to address this issue https://github.com/XRPLF/xrpl.js/pull/2158. I wonder if derivePublicKey is a misnomer assuming what should actually be returned is the accountId. It should probably be called deriveAccountIdFromPrivate I think.

In any case I made the change and I am happy to rename it if it is decided deriveAccountIdFromPrivate is preferred.

EvanTedesco avatar Dec 08 '22 19:12 EvanTedesco