0

So I was curious how to do that. I wasn't able to find any tools online to do that.

1
  • PUB_K1 to EOS format key
    – user5731
    Commented Aug 28, 2021 at 13:34

3 Answers 3

0

See here for an online converter: https://wax.bloks.io/wallet/utilities/format-keys

1
  • Thanks, but this one converts PUB_K1 to EOS format key, I need to convert EOS to PUB_K1
    – user5731
    Commented Aug 26, 2021 at 10:37
0

You can use the stringToPublicKey function from the EOSJS library.

Assuming Node.JS is installed, you can run the following commands in your terminal.

npm install eosjs
node
Welcome to Node.js v16.10.0.
Type ".help" for more information.
> app = require(‘eosjs’)
> const key = app.Numeric.stringToPublicKey('EOSxxxxxxxxxxxxxxx’)
> app.Numeric.publicKeyToString(key)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.