Skip to main content

fetch_manifests

Function fetch_manifests 

Source
pub async fn fetch_manifests<T: Transport + ?Sized>(
    transport: &T,
    authors: &[PublicKey],
    relays: &[String],
) -> Result<Vec<(PublicKey, BotManifest, u64)>, String>
Expand description

Batch-fetch validated manifests for a set of authors over specific relays — the picker’s ONE REQ (all bots of a room in a single query). Transport- generic so community relays are queried directly and tests run offline. Per author: the NEWEST event wins, then must validate (a bot that breaks its own manifest has no usable interface — parity with fetch_manifest); authors the relay volunteers beyond the asked set are dropped, as is anything failing signature verification. Returns each manifest with its event timestamp (the store’s newest-wins key).