You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I created a KeyPair from:
let keypair = await Keypair.makeRandom();
then I have the pubilcKey, privateKey and address saved, later on I need to restore the keypair object so I can use it when sign:
const signedPaymentTxn = await paymentTxn.sign({ payer: keypair });
it seems I can not find a way to restore the keypair from the pubilcKey, privateKey and address I saved.
Any clues?
Thanks in advance
The text was updated successfully, but these errors were encountered:
I am facing a similar issue and raised the following issue. I was told to basically store the entropy that is used to generate the keypair initially. Like so:
I would prefer to have some ability to regenerate the keypair from the privateKey hex string, so I'll keep you updated if theres a separate method in the underlying libsodium-wrapper method that can be used.
Hi, I created a KeyPair from:
let keypair = await Keypair.makeRandom();
then I have the pubilcKey, privateKey and address saved, later on I need to restore the keypair object so I can use it when sign:
const signedPaymentTxn = await paymentTxn.sign({ payer: keypair });
it seems I can not find a way to restore the keypair from the pubilcKey, privateKey and address I saved.
Any clues?
Thanks in advance
The text was updated successfully, but these errors were encountered: