indutny / elliptic

Fast Elliptic Curve Cryptography in plain javascript
1.68k stars 373 forks source link

Is there is a way to Import/Retrieve Keypair from Public Key? #288

Closed root123-bot closed 1 year ago

root123-bot commented 2 years ago

I'm currently facing the challenge about this module, I've created keyPair and I want to POST these keyPair object to another endpoint, what I facing now is that after JSON.parse the stringified KeyPair object it miss raw data of original keyPair which can be used to sign and verify data, after posting it to another endpoint all I have is hexadecimal public key and now I want to retrieve the original/initial created KeyPairs from this hexadecimal public key. So my Question is, there is a way to retrieves the keyPair I've created using hexadecimal public key for me to be able to sign and verify data? Your help will be appreciated... Thanks