Archiving Waku message on Codex

Following up on No store in Messaging API - #13 by haelius

tl;dr: thanks to SDS, we should be able to limit the usage of store time range queries to only recent past. So it can grab the tail of a SDS log, and then proceed with hash queries to get messages listed in causal history.


This allows us to assume that old messages are identified by their waku message id.
It them becomes possible for an archive message to be regular transmitted. Very similar to what @vpavlin did for Qaku. The archive message could contain a list of:

  • Codex cid
  • Bloom filter of Waku message ids contained in the bundle

This ways, it enables users to know whether they are likely to find their missing messages in Codex archive at the given cid.

@vpavlin wdyt?