That is exactly what I meant when I said I’m going to put a stack machine in your relay.
Not exactly, but what you can do is ask the relay “Hey, get this event, then find this entry, then retrieve that and so on” and it can do that and provide you the entire chain as proof.
NFDB will also support 4 retrieval modes:
- Metadata only (kind/created_at/pubkey/id)
- Metadata + content
- Metadata + tags
- Full event
The 1st one is extremely fast and does not incur any IA reads. The 3rd one could be made to not need IA