Skip to main content

parse_revocation_event

Function parse_revocation_event 

Source
pub fn parse_revocation_event(
    event: &NostrEvent,
) -> Option<LeaseRevocationContent>
Expand description

Parse a NostrEvent as a LeaseRevocationContent if its kind matches KIND_LEASE_REVOCATION and the body deserializes cleanly. Returns None for any non-revocation event so the caller can fall through to other dispatch arms without re-parsing.

Pure function — exposed so the standby-side dispatcher can be unit-tested without spinning up the relay pool.