diff options
| author | William Casarin <jb55@jb55.com> | 2022-11-10 12:02:14 -0800 |
|---|---|---|
| committer | William Casarin <jb55@jb55.com> | 2022-11-10 12:02:14 -0800 |
| commit | e7f74d21c48e255181d93eda317f36f9702a14ad (patch) | |
| tree | 91eace6fd625e174e5eff27b02dc74bad7881f22 /20.md | |
| parent | a0b0a021a86b3433f8ce331e85091b6d8c90b4ef (diff) | |
NIP-20: pow suggestion
Diffstat (limited to '20.md')
| -rw-r--r-- | 20.md | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -23,6 +23,8 @@ The `message` SHOULD start with `blocked:` if the pubkey or network address has | |||
| 23 | 23 | ||
| 24 | The `message` SHOULD start with `invalid:` if the event doesn't meet some specific criteria (created_at is too far off, etc) | 24 | The `message` SHOULD start with `invalid:` if the event doesn't meet some specific criteria (created_at is too far off, etc) |
| 25 | 25 | ||
| 26 | 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. | ||
| 27 | |||
| 26 | The `message` SHOULD start with `rate-limited:` if the event was rejected due to rate limiting techniques. | 28 | The `message` SHOULD start with `rate-limited:` if the event was rejected due to rate limiting techniques. |
| 27 | 29 | ||
| 28 | Ephemeral events are not acknowledged with OK responses, unless there is a failure. | 30 | Ephemeral 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 | ||
| 66 | Event rejected, insufficient proof-of-work difficulty | ||
| 67 | |||
| 68 | ["OK", "b1a649ebe8...", false, "pow: difficulty 26 is less than 30"] | ||
| 64 | 69 | ||
| 65 | 70 | ||
| 66 | Future Extensions | 71 | Future Extensions |