learning from soldev
doing Keypair.generate() gives you public and secret key
now the funky part is that it’s encoded as Uint8array
so to see the strings of it
you need to encode it in base58
for the public key you can just do
publicKey.toBase58()
but for the secret key, it doesn’t have that method
so have to use a library called bs58 on npm
bs58.decode(process.env.SECRET_KEY)
encode is from uint8array to string
decode is from string to uint8array