Why Nostr?What is Njump?
jb55 /
npub1xts…kk5s
2024-05-07 20:31:46
in reply to nevent1q…0lpm

jb55 on Nostr: in a little endian representation, you can have a packed 4byte string table offset ...

in a little endian representation, you can have a packed 4byte string table offset like so:



The high-order-byte is reserved for a flag. The next 3 bytes enables a 1-2length null terminated string for a,p,e, etc.

The flag could mean packed str, ID offset, string offset. You mask off the HoB when looking in the string table (but if its a packed 1-2 char string then you don’t need to do a lookup).

I then use these “packed string offsets” as tag values. These are 3byte integer offsets into the strings table which is at the end of the tags data.
Author Public Key
npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s