Why Nostr? What is Njump?
2025-03-30 08:31:25
in reply to

mleku on Nostr: it's based on two things about how tags and filters work 1. single letter tags are ...

it's based on two things about how tags and filters work

1. single letter tags are indexed so finding them is fast and selective

2. the match on the second field (all elements after [ "#x", "<value>", ... ] are prefix matches, whatever your <value> is, it matches if the candidate event tag has that same prefix.

i don't know if that is explicitly stated in the NIP-01 spec but that's how fiatjaf implemented it in Go for go-nostr.

so, yes, it enables precisely this kind of thing, where you have general -> specific segments of the tag string. Tag strings are limited to 100 characters but that is plenty for concise multi-segment values.
Author Public Key
npub1fjqqy4a93z5zsjwsfxqhc2764kvykfdyttvldkkkdera8dr78vhsmmleku