Why Nostr? What is Njump?
2024-07-26 14:47:45
in reply to

mleku on Nostr: not sure if this is actually what the NIP means - the encrypted bytes are encoded in ...

not sure if this is actually what the NIP means - the encrypted bytes are encoded in base64 and you have to pad base64... it is 6 bits per character so it's 3 bytes per 4 characters, and it uses = as the padding character iirc

same thing happens with base/bech32, 5 bits per cipher and thus the nearest divisible by 8 to zero is 40, which is 8 characters, you can leave the padding out if you designate which end is start/end, and pad there, this is how bech32 encoding does things in fact

technically you could do the same thing with base64 but that would require a customized codec
Author Public Key
npub1fjqqy4a93z5zsjwsfxqhc2764kvykfdyttvldkkkdera8dr78vhsmmleku