diff options
| author | utxo <github@utxo.one> | 2024-03-21 10:18:42 -0400 |
|---|---|---|
| committer | utxo <github@utxo.one> | 2024-03-21 10:18:42 -0400 |
| commit | 965eb45b30b6000da976addcf3163858abadcf07 (patch) | |
| tree | c9fa7dcdd8ec7d60351c2887d55b63f0c65373eb /05.md | |
| parent | 46a6bf331ae823dad079a9740f37d57e58b92358 (diff) | |
remove prettier formatting
Diffstat (limited to '05.md')
| -rw-r--r-- | 05.md | 15 |
1 files changed, 7 insertions, 8 deletions
| @@ -1,6 +1,8 @@ | |||
| 1 | # NIP-05 | 1 | NIP-05 |
| 2 | ====== | ||
| 2 | 3 | ||
| 3 | ## Mapping Nostr keys to DNS-based internet identifiers | 4 | Mapping Nostr keys to DNS-based internet identifiers |
| 5 | ---------------------------------------------------- | ||
| 4 | 6 | ||
| 5 | `final` `optional` | 7 | `final` `optional` |
| 6 | 8 | ||
| @@ -31,7 +33,7 @@ It will make a GET request to `https://example.com/.well-known/nostr.json?name=b | |||
| 31 | "bob": "b0635d6a9851d3aed0cd6c495b282167acf761729078d975fc341b22650b07b9" | 33 | "bob": "b0635d6a9851d3aed0cd6c495b282167acf761729078d975fc341b22650b07b9" |
| 32 | } | 34 | } |
| 33 | } | 35 | } |
| 34 | ``` | 36 | ```` |
| 35 | 37 | ||
| 36 | or with the **recommended** `"relays"` attribute: | 38 | or with the **recommended** `"relays"` attribute: |
| 37 | 39 | ||
| @@ -41,13 +43,10 @@ or with the **recommended** `"relays"` attribute: | |||
| 41 | "bob": "b0635d6a9851d3aed0cd6c495b282167acf761729078d975fc341b22650b07b9" | 43 | "bob": "b0635d6a9851d3aed0cd6c495b282167acf761729078d975fc341b22650b07b9" |
| 42 | }, | 44 | }, |
| 43 | "relays": { | 45 | "relays": { |
| 44 | "b0635d6a9851d3aed0cd6c495b282167acf761729078d975fc341b22650b07b9": [ | 46 | "b0635d6a9851d3aed0cd6c495b282167acf761729078d975fc341b22650b07b9": [ "wss://relay.example.com", "wss://relay2.example.com" ] |
| 45 | "wss://relay.example.com", | ||
| 46 | "wss://relay2.example.com" | ||
| 47 | ] | ||
| 48 | } | 47 | } |
| 49 | } | 48 | } |
| 50 | ``` | 49 | ```` |
| 51 | 50 | ||
| 52 | If the pubkey matches the one given in `"names"` (as in the example above) that means the association is right and the `"nip05"` identifier is valid and can be displayed. | 51 | If the pubkey matches the one given in `"names"` (as in the example above) that means the association is right and the `"nip05"` identifier is valid and can be displayed. |
| 53 | 52 | ||