mikedilger / nostr-next

Issues with nostr that would require breaking changes to fix
3 stars 0 forks source link

Hard limits on tags #32

Open mikedilger opened 1 month ago

mikedilger commented 1 month ago

Defined limits on how many tags an event can have, and how many strings each tag can have.

Pocket's binary encoded events (and filters) support up to 65536 tags, with 65536 elements each, each string can be up to 65536 bytes, and also the entire binary encoding of tags cannot be longer then 65536 bytes (we use a 2-byte offset to jump beyond the tags section).

https://github.com/nostr-protocol/nips/issues/1278