upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth For Privacy <github.5dbwg@simplelogin.com>2023-06-09 11:19:23 -0400
committerfiatjaf_ <fiatjaf@gmail.com>2023-06-09 16:17:30 -0300
commit3e03b4b67f3421c8b7604426a7217422cdd013ff (patch)
tree6ed91cc5227c6524763a55f30e6194c38bec42a9
parentd435ffc39cacf485662cea5c98aaa4af5af3b447 (diff)
Add context for limiting `before` timestamp
-rw-r--r--26.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/26.md b/26.md
index b8fa902..9117699 100644
--- a/26.md
+++ b/26.md
@@ -52,7 +52,9 @@ For example, the following condition strings are valid:
52- `kind=0&kind=1&created_at>1675721813` 52- `kind=0&kind=1&created_at>1675721813`
53- `kind=1&created_at>1674777689&created_at<1675721813` 53- `kind=1&created_at>1674777689&created_at<1675721813`
54 54
55For the vast majority of use-cases, it is advisable that query strings should include a `created_at` ***after*** condition reflecting the current time, to prevent the delegatee from publishing historic notes on the delegator's behalf. 55For the vast majority of use-cases, it is advisable that:
561. Query strings should include a `created_at` ***after*** condition reflecting the current time, to prevent the delegatee from publishing historic notes on the delegator's behalf.
572. Query strings should include a `created_at` ***before*** condition that is not empty and is not some extremely distant time in the future. If delegations are not limited in time scope, they expose similar security risks to simply using the root key for authentication.
56 58
57#### Example 59#### Example
58 60
@@ -105,4 +107,4 @@ Clients should display the delegated note as if it was published directly by the
105 107
106Relays should answer requests such as `["REQ", "", {"authors": ["A"]}]` by querying both the `pubkey` and delegation tags `[1]` value. 108Relays should answer requests such as `["REQ", "", {"authors": ["A"]}]` by querying both the `pubkey` and delegation tags `[1]` value.
107 109
108Relays SHOULD allow the delegator (8e0d3d3e) to delete the events published by the delegatee (477318cf). \ No newline at end of file 110Relays SHOULD allow the delegator (8e0d3d3e) to delete the events published by the delegatee (477318cf).