diff options
| author | fiatjaf <fiatjaf@gmail.com> | 2023-11-18 09:13:12 -0300 |
|---|---|---|
| committer | fiatjaf <fiatjaf@gmail.com> | 2023-11-18 09:13:12 -0300 |
| commit | 5dcfe85306434f21ecb1e7a47edd92b2e3e64f9a (patch) | |
| tree | 4fff8694238b3ae5e692a8480869ad1266b95be4 /39.md | |
| parent | b0df71824f9967130b54150b64cc70fa94bffec2 (diff) | |
reformat a bunch of json things and small nitpicks.
Diffstat (limited to '39.md')
| -rw-r--r-- | 39.md | 28 |
1 files changed, 13 insertions, 15 deletions
| @@ -15,15 +15,13 @@ Nostr protocol users may have other online identities such as usernames, profile | |||
| 15 | A new optional `i` tag is introduced for `kind 0` metadata event contents in addition to name, about, picture fields as included in [NIP-01](https://github.com/nostr-protocol/nips/blob/master/01.md): | 15 | A new optional `i` tag is introduced for `kind 0` metadata event contents in addition to name, about, picture fields as included in [NIP-01](https://github.com/nostr-protocol/nips/blob/master/01.md): |
| 16 | ```json | 16 | ```json |
| 17 | { | 17 | { |
| 18 | "id": <id>, | 18 | "tags": [ |
| 19 | "pubkey": <pubkey>, | 19 | ["i", "github:semisol", "9721ce4ee4fceb91c9711ca2a6c9a5ab"], |
| 20 | ... | 20 | ["i", "twitter:semisol_public", "1619358434134196225"], |
| 21 | "tags": [ | 21 | ["i", "mastodon:bitcoinhackers.org/@semisol", "109775066355589974"] |
| 22 | ["i", "github:semisol", "9721ce4ee4fceb91c9711ca2a6c9a5ab"], | 22 | ["i", "telegram:1087295469", "nostrdirectory/770"] |
| 23 | ["i", "twitter:semisol_public", "1619358434134196225"], | 23 | ], |
| 24 | ["i", "mastodon:bitcoinhackers.org/@semisol", "109775066355589974"] | 24 | ... |
| 25 | ["i", "telegram:1087295469", "nostrdirectory/770"] | ||
| 26 | ] | ||
| 27 | } | 25 | } |
| 28 | ``` | 26 | ``` |
| 29 | 27 | ||
| @@ -31,9 +29,9 @@ An `i` tag will have two parameters, which are defined as the following: | |||
| 31 | 1. `platform:identity`: This is the platform name (for example `github`) and the identity on that platform (for example `semisol`) joined together with `:`. | 29 | 1. `platform:identity`: This is the platform name (for example `github`) and the identity on that platform (for example `semisol`) joined together with `:`. |
| 32 | 2. `proof`: String or object that points to the proof of owning this identity. | 30 | 2. `proof`: String or object that points to the proof of owning this identity. |
| 33 | 31 | ||
| 34 | Clients SHOULD process any `i` tags with more than 2 values for future extensibility. | 32 | Clients SHOULD process any `i` tags with more than 2 values for future extensibility. |
| 35 | Identity provider names SHOULD only include `a-z`, `0-9` and the characters `._-/` and MUST NOT include `:`. | 33 | Identity provider names SHOULD only include `a-z`, `0-9` and the characters `._-/` and MUST NOT include `:`. |
| 36 | Identity names SHOULD be normalized if possible by replacing uppercase letters with lowercase letters, and if there are multiple aliases for an entity the primary one should be used. | 34 | Identity names SHOULD be normalized if possible by replacing uppercase letters with lowercase letters, and if there are multiple aliases for an entity the primary one should be used. |
| 37 | 35 | ||
| 38 | ## Claim types | 36 | ## Claim types |
| 39 | 37 | ||
| @@ -41,14 +39,14 @@ Identity names SHOULD be normalized if possible by replacing uppercase letters w | |||
| 41 | 39 | ||
| 42 | Identity: A GitHub username. | 40 | Identity: A GitHub username. |
| 43 | 41 | ||
| 44 | Proof: A GitHub Gist ID. This Gist should be created by `<identity>` with a single file that has the text `Verifying that I control the following Nostr public key: <npub encoded public key>`. | 42 | Proof: A GitHub Gist ID. This Gist should be created by `<identity>` with a single file that has the text `Verifying that I control the following Nostr public key: <npub encoded public key>`. |
| 45 | This can be located at `https://gist.github.com/<identity>/<proof>`. | 43 | This can be located at `https://gist.github.com/<identity>/<proof>`. |
| 46 | 44 | ||
| 47 | ### `twitter` | 45 | ### `twitter` |
| 48 | 46 | ||
| 49 | Identity: A Twitter username. | 47 | Identity: A Twitter username. |
| 50 | 48 | ||
| 51 | Proof: A Tweet ID. The tweet should be posted by `<identity>` and have the text `Verifying my account on nostr My Public Key: "<npub encoded public key>"`. | 49 | Proof: A Tweet ID. The tweet should be posted by `<identity>` and have the text `Verifying my account on nostr My Public Key: "<npub encoded public key>"`. |
| 52 | This can be located at `https://twitter.com/<identity>/status/<proof>`. | 50 | This can be located at `https://twitter.com/<identity>/status/<proof>`. |
| 53 | 51 | ||
| 54 | ### `mastodon` | 52 | ### `mastodon` |
| @@ -62,5 +60,5 @@ This can be located at `https://<identity>/<proof>`. | |||
| 62 | 60 | ||
| 63 | Identity: A Telegram user ID. | 61 | Identity: A Telegram user ID. |
| 64 | 62 | ||
| 65 | Proof: A string in the format `<ref>/<id>` which points to a message published in the public channel or group with name `<ref>` and message ID `<id>`. This message should be sent by user ID `<identity>` and have the text `Verifying that I control the following Nostr public key: "<npub encoded public key>"`. | 63 | Proof: A string in the format `<ref>/<id>` which points to a message published in the public channel or group with name `<ref>` and message ID `<id>`. This message should be sent by user ID `<identity>` and have the text `Verifying that I control the following Nostr public key: "<npub encoded public key>"`. |
| 66 | This can be located at `https://t.me/<proof>`. | 64 | This can be located at `https://t.me/<proof>`. |