nostr-websocket-utils / TimeValidator
Defined in: nips/nip-22.ts:30
Time validator interface
validateTime(
timestamp):TimeValidationResult
Defined in: nips/nip-22.ts:36
Validates event timestamp
number
Event timestamp
Validation result
updateTimeOffset(
serverTime):void
Defined in: nips/nip-22.ts:42
Updates server time offset
number
Server timestamp
void
getCurrentTime():
number
Defined in: nips/nip-22.ts:48
Gets current adjusted timestamp
number
Adjusted timestamp