How to get publickey from key.pub


#1

{ok, PKey} = file:read_file(“generated_keys/key.pub”).
readfile ok!
I get bin formate of public key .
PKey = <<97,78,113,49,180,249,44,121,217,230,135,81,207,252,190,…>>

The question is how to chenge bin formate to like this:
ak_mieFZGZnF9PmwZn6ecgUKWk6ttRn1VBdarRRrHocNXm7JTfn1
???
thanks !


#2

This pub key is encoded, idk how you got it but every single program usually gives you the public address and saves it in binary format. you should be able to recover it.