
10 Oct
2021
10 Oct
'21
3:29 p.m.
On Sun, Oct 10, 2021 at 8:44 AM nusenu <nusenu-lists@riseup.net> wrote:
Hi,
given a relay's ed25519_master_id_public_key file, is there a simple way to generate the 43 chars long ed25519 identity string (also found in fingerprint-ed25519)?
Yes, there is! First you verify that the file is really 64 bytes long, and that the first 32 bytes of the file are really "== ed25519v1-public: type0 ==\0\0\0". Having done that, you base64-encode the second 32 bytes of the file, with no "=" padding. I've attached a lazy little python script. cheers, -- Nick