nostr-websocket-utils

nostr-websocket-utils v0.3.0


nostr-websocket-utils / validateEventTime

Function: validateEventTime()

validateEventTime(message, validator, logger): TimeValidationResult

Validates event timestamp

Parameters

message

NostrWSMessage

Message to validate

validator

TimeValidator

Time validator

logger

Logger

Logger instance

Returns

TimeValidationResult

Validation result

Defined in

nips/nip-22.ts:106