upleb.uk

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

summaryrefslogtreecommitdiff
path: root/20.md
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2022-11-10 12:02:14 -0800
committerWilliam Casarin <jb55@jb55.com>2022-11-10 12:02:14 -0800
commite7f74d21c48e255181d93eda317f36f9702a14ad (patch)
tree91eace6fd625e174e5eff27b02dc74bad7881f22 /20.md
parenta0b0a021a86b3433f8ce331e85091b6d8c90b4ef (diff)
NIP-20: pow suggestion
Diffstat (limited to '20.md')
-rw-r--r--20.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/20.md b/20.md
index 447b10a..e76942a 100644
--- a/20.md
+++ b/20.md
@@ -23,6 +23,8 @@ The `message` SHOULD start with `blocked:` if the pubkey or network address has
23 23
24The `message` SHOULD start with `invalid:` if the event doesn't meet some specific criteria (created_at is too far off, etc) 24The `message` SHOULD start with `invalid:` if the event doesn't meet some specific criteria (created_at is too far off, etc)
25 25
26The `message` SHOULD start with `pow:` if the event doesn't meet some proof-of-work difficulty. The client MAY consult the relay metadata at this point to retrieve the required posting difficulty.
27
26The `message` SHOULD start with `rate-limited:` if the event was rejected due to rate limiting techniques. 28The `message` SHOULD start with `rate-limited:` if the event was rejected due to rate limiting techniques.
27 29
28Ephemeral events are not acknowledged with OK responses, unless there is a failure. 30Ephemeral events are not acknowledged with OK responses, unless there is a failure.
@@ -61,6 +63,9 @@ Event rejected, `created_at` too far off
61 63
62 ["OK", "b1a649ebe8...", false, "invalid: event creation date is too far off from the current time. Is your system clock in sync?"] 64 ["OK", "b1a649ebe8...", false, "invalid: event creation date is too far off from the current time. Is your system clock in sync?"]
63 65
66Event rejected, insufficient proof-of-work difficulty
67
68 ["OK", "b1a649ebe8...", false, "pow: difficulty 26 is less than 30"]
64 69
65 70
66Future Extensions 71Future Extensions