Skip to main content

announce_bundle_scopes

Function announce_bundle_scopes 

Source
pub async fn announce_bundle_scopes(gossip: &GossipNode, bytes: &[u8])
Expand description

Announce every CA scope in a freshly produced bundle to the gossip mesh.

Parses the sealed bundle bytes to recover each scope’s producer_id, issuer_key_hash, and epoch, then broadcasts one GenerationAnnouncement per scope. The generation identity is ahu::manifest_digest of the serialized manifest — it changes whenever any signed manifest metadata (epoch, window, continuity) changes, unlike the index digest, which only covers the index section. bundle_url stays None until a bundle retrieval route actually exists; announcing a fabricated URL would point receivers at nothing. Failures are logged, never fatal — gossip is best-effort and must not break a successful signing pass. Centralized here because this is the only crate that depends on both ahu (to parse) and hoike-gossip (to send).