I should have given more info above. This is in the context of an external web app working with a NIP-21 URI in the format `nostr:nevent1xxxx`. Relay and author metadata are optional so we can't always do the Outbox model bootstrapping sequence magic as we may not even have the author pubkey (although I'll tag nostr:nprofile1qqswuyd9ml6qcxd92h6pleptfrcqucvvjy39vg4wx7mv9wm8kakyujgpypmhxue69uhkx6r0wf6hxtndd94k2erfd3nk2u3wvdhk6w35xs6z7qgwwaehxw309ahx7uewd3hkctcpypmhxue69uhkummnw3ezuetfde6kuer6wasku7nfvuh8xurpvdjj7a0nq40 here just in case as he often has magical solutions to everything nostr :))

I wonder what software like njump.me do to retrieve a note by nevent.

Reply to this note

Please Login to reply.

Discussion

nostr:nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8gprfmhxue69uhkcmmrdd3x77pwve5kzar2v9nzucm0d5hsh2c3z4, sorry to bother you. Is the central njump.me using this list of relays to retrieve nevents without relay metadata? If not, can you send me the most up-to-date list or point us to whatever magic you are doing there?

https://github.com/fiatjaf/njump/blob/master/relay-config.json.sample

I think the actual answer is to fix the clients that are producing those nevent IDs without encoding the author or relay metadata of where it was published or found. I feel like it’s ok to say we don’t have enough information to find this event on this decentralized network because you didn’t provide it. That’s just my opinion though.

Agreed, although "fix" may be a strong word given that NIP-21 language makes it optional. https://github.com/nostr-protocol/nips/blob/master/19.md . Still, you are right, clients should include relay metadata when generating nevents

If you only have the Id (since nevent makes the rest optional) there is no slick magic. Now that this is clear, when you create an nevent include the author so other people don't have this problem. I'd even suggest changing the NIP to make the author required for an nevent.

> I'd even suggest changing the NIP to make the author required for an nevent.

Agreed. There’s very few reasons why a client wouldn’t have the author if it already has the event.

Mandatory author, and maybe relay as well. Worth a discussion and even a PR.