pub fn validate_nip42_authentication(
event: &SignedNostrEvent,
expected_author: &NostrPublicKey,
challenge: &str,
relay_url: &str,
now: u64,
) -> Result<(), SoftchatError>Expand description
Validate a NIP-42 authentication event against its exact connection context.
ยงErrors
Returns SoftchatError::InvalidRelayAuthentication for wrong kind,
content, challenge, relay, duplicated tags, or timestamp window.