base256 emoji #1061
Replies: 6 comments 3 replies
-
Emoji uses 34 "chars", but takes 132 bytes to represent them. It's visually shorter, but longer in byte array. Both hex and bech use ~62 chars in 62 bytes. |
Beta Was this translation helpful? Give feedback.
-
I hate this! |
Beta Was this translation helpful? Give feedback.
-
The guy who created this library created Bluesky. |
Beta Was this translation helpful? Give feedback.
-
Someone convince me not to do this, please. Because I like it a lot even though there are a few reasons not to do it. I'm sure it will "break everything", etc. |
Beta Was this translation helpful? Give feedback.
-
I will wait for when the combination of emojis is so large that we can represent a pubkey with a single emoji Today for instance, you can do this + vary them by skin tone |
Beta Was this translation helpful? Give feedback.
-
I noticed that bech32 IDs are still very long, almost as long as hex pubkeys. I thought since
16 x 2 = 32
it should be 1/2 the size? Doesn't work that way:To get twice the encoding density, you need to double the exponent, not the base:
24 = 16
28 = 256
Therefore, we need to use base256 to halve the length of Nostr IDs. Fortunately,
npm:base-emoji
exists! And it uses base256 encoding! So, I present to you my Nostr public key in base256 emoji format:🎁🍗🎀⚽️🎨💉🎂🐙🔨😎🍪🌙☁️😎🔆🐔💿💐🐻🔩🏃🌼🍩👈👐🍄👔🏁🔭👜🍎📼
This is possibly my greatest discovery on Nostr yet. This is unequivocally the future of Nostr cryptography. You can thank me later.
Beta Was this translation helpful? Give feedback.
All reactions