I’ve been pondering this too.

How micro you thinking? Basically map event_id to relays that broadcast it (don’t event store the event), or map a pubkey to the latest kind 0/3/10023 events known? Both?

Because Nostr doesn’t have a HEAD concept, certainty around ‘newest’ meta events is hard to make foolproof.

Reply to this note

Please Login to reply.

Discussion

I’ve added metadata_event_id, contact_event_id and relay_event_id to my API for the latest event id known for kinds 0, 3, 10002.

The two problem points I think an indexer should ideally address are:

1. How do I consistently get the latest event id

2. Where can I find that event body (which relay)

I think the problem space is mostly the meta events that can be replaced. And then secondly, in generate, where can I find an event id.

Is this what you were thinking?

https://api.nostrgraph.net/beta/identities/b2dd40097e4d04b1a56fb3b65fc1d1aaf2929ad30fd842c74d68b9908744495b.json?pretty=true