xrpl.js
xrpl.js copied to clipboard
Feature request: derive public key from private key @ripple-keypairs
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
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.