Skip to main content

prepare_event

Function prepare_event 

Source
pub async fn prepare_event(
    event: Event,
    client: &Client,
    my_public_key: PublicKey,
) -> PreparedEvent
Expand description

Phase 1: Prepare an event for commit (parallel-safe, no state mutation).

Performs dedup check, gift wrap decryption, and rumor parsing. Safe to call from multiple tokio tasks concurrently.