EOSIO / eosjs-ecc

Elliptic curve cryptography functions: Private Key, Public Key, Signature, AES, Encryption, Decryption
288 stars 119 forks source link

Get base58 public key from hex #43

Closed rahil471 closed 5 years ago

rahil471 commented 5 years ago

Not sure if this is the right place for this question.

However here is the problem.

I'm trying get the public key from my ledger nano S.

publicKey: "0436f9684f39d8bea1e54c04140803aff5ab11b90sf005c66e7835cee6c1bc5c1c0f68a3586d3bb2467ae9d91d22ec59075de2576483779eca7430dde0778de3c2"
wif: "EOS5JhbadEK34EGF78UeZTbaofJP7JyqTrppYyxzs59LDPMWyH7p6"

This is the response I get.

Is there any way I can use this library to get the public key in the right format. I tried using ecc.privatetoPublic(wif) but ti didn't work (remove the eos prefix - got some checksum error.)

Can you in anyway help me with this.

@jcalfee Can you help me with this?

rahil471 commented 5 years ago

My bad wif was the public key in this case