diff options
| author | Semisol <45574030+Semisol@users.noreply.github.com> | 2023-11-19 01:45:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-19 01:45:41 +0100 |
| commit | da19c078ab892b578a5c35968443205c9e8ac27f (patch) | |
| tree | 17a9f4f3105acdae234d3bc67e42571aed261fa2 /13.md | |
| parent | 4d709d1804de45bab3739ce814d4b0c0b211c273 (diff) | |
| parent | 5dcfe85306434f21ecb1e7a47edd92b2e3e64f9a (diff) | |
Merge branch 'master' into clarify-json-serialization
Diffstat (limited to '13.md')
| -rw-r--r-- | 13.md | 10 |
1 files changed, 3 insertions, 7 deletions
| @@ -4,7 +4,7 @@ NIP-13 | |||
| 4 | Proof of Work | 4 | Proof of Work |
| 5 | ------------- | 5 | ------------- |
| 6 | 6 | ||
| 7 | `draft` `optional` `author:jb55` `author:cameri` | 7 | `draft` `optional` |
| 8 | 8 | ||
| 9 | This NIP defines a way to generate and interpret Proof of Work for nostr notes. Proof of Work (PoW) is a way to add a proof of computational work to a note. This is a bearer proof that all relays and clients can universally validate with a small amount of code. This proof can be used as a means of spam deterrence. | 9 | This NIP defines a way to generate and interpret Proof of Work for nostr notes. Proof of Work (PoW) is a way to add a proof of computational work to a note. This is a bearer proof that all relays and clients can universally validate with a small amount of code. This proof can be used as a means of spam deterrence. |
| 10 | 10 | ||
| @@ -35,11 +35,7 @@ Example mined note | |||
| 35 | "created_at": 1651794653, | 35 | "created_at": 1651794653, |
| 36 | "kind": 1, | 36 | "kind": 1, |
| 37 | "tags": [ | 37 | "tags": [ |
| 38 | [ | 38 | ["nonce", "776797", "21"] |
| 39 | "nonce", | ||
| 40 | "776797", | ||
| 41 | "21" | ||
| 42 | ] | ||
| 43 | ], | 39 | ], |
| 44 | "content": "It's just me mining my own business", | 40 | "content": "It's just me mining my own business", |
| 45 | "sig": "284622fc0a3f4f1303455d5175f7ba962a3300d136085b9566801bc2e0699de0c7e31e44c81fb40ad9049173742e904713c3594a1da0fc5d2382a25c11aba977" | 41 | "sig": "284622fc0a3f4f1303455d5175f7ba962a3300d136085b9566801bc2e0699de0c7e31e44c81fb40ad9049173742e904713c3594a1da0fc5d2382a25c11aba977" |
| @@ -110,7 +106,7 @@ function countLeadingZeroes(hex) { | |||
| 110 | Querying relays for PoW notes | 106 | Querying relays for PoW notes |
| 111 | ----------------------------- | 107 | ----------------------------- |
| 112 | 108 | ||
| 113 | Since relays allow searching on prefixes, you can use this as a way to filter notes of a certain difficulty: | 109 | If relays allow searching on prefixes, you can use this as a way to filter notes of a certain difficulty: |
| 114 | 110 | ||
| 115 | ``` | 111 | ``` |
| 116 | $ echo '["REQ", "subid", {"ids": ["000000000"]}]' | websocat wss://some-relay.com | jq -c '.[2]' | 112 | $ echo '["REQ", "subid", {"ids": ["000000000"]}]' | websocat wss://some-relay.com | jq -c '.[2]' |