Browse Source

NIP-20: pow suggestion

remote-signing
William Casarin 2 years ago
parent
commit
e7f74d21c4
  1. 5
      20.md

5
20.md

@ -23,6 +23,8 @@ The `message` SHOULD start with `blocked:` if the pubkey or network address has
The `message` SHOULD start with `invalid:` if the event doesn't meet some specific criteria (created_at is too far off, etc)
The `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.
The `message` SHOULD start with `rate-limited:` if the event was rejected due to rate limiting techniques.
Ephemeral events are not acknowledged with OK responses, unless there is a failure.
@ -61,6 +63,9 @@ Event rejected, `created_at` too far off
["OK", "b1a649ebe8...", false, "invalid: event creation date is too far off from the current time. Is your system clock in sync?"]
Event rejected, insufficient proof-of-work difficulty
["OK", "b1a649ebe8...", false, "pow: difficulty 26 is less than 30"]
Future Extensions

Loading…
Cancel
Save