What is Nostr?
mplorentz / Matthew Lorentz
npub16zs…92l7
2023-02-09 15:31:37

mplorentz on Nostr: It turns out that in order to Bech32 encode something the data needs to be in base 5. ...

It turns out that in order to Bech32 encode something the data needs to be in base 5. At least with the library I'm using. It only took me like 4 hours to figure this out. I'm still a little confused because the Bitcoin wiki includes steps for sha256 and RIPEMD-160 hashing in the encoding process, but nostr clients don't seem to do that part? https://en.bitcoin.it/wiki/Bech32
Author Public Key
npub16zsllwrkrwt5emz2805vhjewj6nsjrw0ge0latyrn2jv5gxf5k0q5l92l7