nostriphant / transpher

Nostr relay in PHP
MIT License
2 stars 1 forks source link

NIP-22: Event created_at Limits #12

Open rikmeijer opened 1 week ago

rikmeijer commented 1 week ago

https://nostr-nips.com/nip-22

Name Description
limits.event.createdAt.maxPositiveDelta Maximum number of seconds an event's created_at can be in the future. Defaults to 900 (15 minutes). Disabled when set to zero.
limits.event.createdAt.minNegativeDelta Maximum number of seconds an event's created_at can be in the past. Defaults to zero. Disabled when set to zero.
rikmeijer commented 1 day ago

NIP-11 communication, unit is seconds

{
...
  "limitation": {
        ...
        "created_at_lower_limit":31536000,
        "created_at_upper_limit":3,
        ...
  }
...
}

created_at_lower_limit: 'created_at' lower limit as defined in NIP-22 created_at_upper_limit: 'created_at' upper limit as defined in NIP-22