I did the following in my html file in the chrome console. After I get the following public and private keypair. How do I convert it into a base58 or seed phrase?
The docs below don't state how to go about it:
I did the following in my html file in the chrome console. After I get the following public and private keypair. How do I convert it into a base58 or seed phrase?
The docs below don't state how to go about it:
For converting your Public Key into base58
, look at this reference.
Also, it is not possible to generate a mnemonic from a Keypair.
However, the vice-versa is true, as highlighted in the docs you linked.
const keypair = solanaWeb3.Keypair.generate();
const base58 = keypair.publicKey().toBase58();