mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-12-09 08:38:50 +00:00
Compare commits
22 Commits
mplorentz-
...
video-phot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bf78188069 | ||
|
|
564814ac7d | ||
|
|
ccd02f2612 | ||
|
|
ebfcd72a8d | ||
|
|
86f0da716f | ||
|
|
5b7d338200 | ||
|
|
2ade2e6229 | ||
|
|
85f3282e46 | ||
|
|
77fdeeb6f1 | ||
|
|
b96b72b488 | ||
|
|
507830c5c4 | ||
|
|
473f651b3e | ||
|
|
257e8700ea | ||
|
|
121258a611 | ||
|
|
5a371a5b92 | ||
|
|
4f09333ab5 | ||
|
|
8cdfe98e74 | ||
|
|
4ba28112e6 | ||
|
|
951aaa8ba1 | ||
|
|
c076437282 | ||
|
|
45f6d598a1 | ||
|
|
611b635186 |
4
01.md
4
01.md
@@ -14,7 +14,7 @@ Each user has a keypair. Signatures, public key, and encodings are done accordin
|
|||||||
|
|
||||||
The only object type that exists is the `event`, which has the following format on the wire:
|
The only object type that exists is the `event`, which has the following format on the wire:
|
||||||
|
|
||||||
```jsonc
|
```yaml
|
||||||
{
|
{
|
||||||
"id": <32-bytes lowercase hex-encoded sha256 of the serialized event data>,
|
"id": <32-bytes lowercase hex-encoded sha256 of the serialized event data>,
|
||||||
"pubkey": <32-bytes lowercase hex-encoded public key of the event creator>,
|
"pubkey": <32-bytes lowercase hex-encoded public key of the event creator>,
|
||||||
@@ -120,7 +120,7 @@ Clients can send 3 types of messages, which must be JSON arrays, according to th
|
|||||||
|
|
||||||
`<filtersX>` is a JSON object that determines what events will be sent in that subscription, it can have the following attributes:
|
`<filtersX>` is a JSON object that determines what events will be sent in that subscription, it can have the following attributes:
|
||||||
|
|
||||||
```json
|
```yaml
|
||||||
{
|
{
|
||||||
"ids": <a list of event ids>,
|
"ids": <a list of event ids>,
|
||||||
"authors": <a list of lowercase pubkeys, the pubkey of an event must be one of these>,
|
"authors": <a list of lowercase pubkeys, the pubkey of an event must be one of these>,
|
||||||
|
|||||||
129
11.md
129
11.md
@@ -21,6 +21,10 @@ When a relay receives an HTTP(s) request with an `Accept` header of `application
|
|||||||
"supported_nips": <a list of NIP numbers supported by the relay>,
|
"supported_nips": <a list of NIP numbers supported by the relay>,
|
||||||
"software": <string identifying relay software URL>,
|
"software": <string identifying relay software URL>,
|
||||||
"version": <string version identifier>
|
"version": <string version identifier>
|
||||||
|
"privacy_policy": <a link to a text file describing the relay's privacy policy>,
|
||||||
|
"terms_of_service": <a link to a text file describing the relay's term of service>,
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -74,21 +78,30 @@ The relay server implementation MAY be provided in the `software` attribute. If
|
|||||||
|
|
||||||
The relay MAY choose to publish its software version as a string attribute. The string format is defined by the relay implementation. It is recommended this be a version number or commit identifier.
|
The relay MAY choose to publish its software version as a string attribute. The string format is defined by the relay implementation. It is recommended this be a version number or commit identifier.
|
||||||
|
|
||||||
|
### Privacy Policy
|
||||||
|
|
||||||
|
The relay owner/admin MAY choose to link to a privacy policy document, which describes how the relay utilizes user data. Data collection, data usage, data retention, monetization of data, and third party data sharing SHOULD be included.
|
||||||
|
|
||||||
|
### Terms of Service
|
||||||
|
|
||||||
|
The relay owner/admin MAY choose to link to a terms of service document.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Extra Fields
|
Extra Fields
|
||||||
------------
|
------------
|
||||||
|
|
||||||
### Server Limitations
|
### Server Limitations
|
||||||
|
|
||||||
These are limitations imposed by the relay on clients. Your client
|
These are limitations imposed by the relay on clients. Your client
|
||||||
should expect that requests which exceed these *practical* limitations
|
should expect that requests exceed these *practical* limitations
|
||||||
are rejected or fail immediately.
|
are rejected or fail immediately.
|
||||||
|
|
||||||
```jsonc
|
```jsonc
|
||||||
{
|
{
|
||||||
"limitation": {
|
"limitation": {
|
||||||
"max_message_length": 16384,
|
"max_message_length": 16384,
|
||||||
"max_subscriptions": 20,
|
"max_subscriptions": 300,
|
||||||
"max_filters": 100,
|
|
||||||
"max_limit": 5000,
|
"max_limit": 5000,
|
||||||
"max_subid_length": 100,
|
"max_subid_length": 100,
|
||||||
"max_event_tags": 100,
|
"max_event_tags": 100,
|
||||||
@@ -98,33 +111,30 @@ are rejected or fail immediately.
|
|||||||
"payment_required": true,
|
"payment_required": true,
|
||||||
"restricted_writes": true,
|
"restricted_writes": true,
|
||||||
"created_at_lower_limit": 31536000,
|
"created_at_lower_limit": 31536000,
|
||||||
"created_at_upper_limit": 3
|
"created_at_upper_limit": 3,
|
||||||
|
"default_limit": 500
|
||||||
},
|
},
|
||||||
// other fields...
|
// other fields...
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- `max_message_length`: this is the maximum number of bytes for incoming JSON that the relay
|
- `max_message_length`: the maximum number of bytes for incoming JSON that the relay
|
||||||
will attempt to decode and act upon. When you send large subscriptions, you will be
|
will attempt to decode and act upon. When you send large subscriptions, you will be
|
||||||
limited by this value. It also effectively limits the maximum size of any event. Value is
|
limited by this value. It also effectively limits the maximum size of any event. Value is
|
||||||
calculated from `[` to `]` and is after UTF-8 serialization (so some unicode characters
|
calculated from `[` to `]` after UTF-8 serialization (so some unicode characters
|
||||||
will cost 2-3 bytes). It is equal to the maximum size of the WebSocket message frame.
|
will cost 2-3 bytes). It is equal to the maximum size of the WebSocket message frame.
|
||||||
|
|
||||||
- `max_subscriptions`: total number of subscriptions that may be
|
- `max_subscriptions`: total number of subscriptions that may be
|
||||||
active on a single websocket connection to this relay. It's possible
|
active on a single websocket connection to this relay. Authenticated clients with a (paid) relationship to the relay
|
||||||
that authenticated clients with a (paid) relationship to the relay
|
|
||||||
may have higher limits.
|
may have higher limits.
|
||||||
|
|
||||||
- `max_filters`: maximum number of filter values in each subscription.
|
|
||||||
Must be one or higher.
|
|
||||||
|
|
||||||
- `max_subid_length`: maximum length of subscription id as a string.
|
- `max_subid_length`: maximum length of subscription id as a string.
|
||||||
|
|
||||||
- `max_limit`: the relay server will clamp each filter's `limit` value to this number.
|
- `max_limit`: the relay server will clamp each filter's `limit` value to this number.
|
||||||
This means the client won't be able to get more than this number
|
This means the client won't be able to get more than this number
|
||||||
of events from a single subscription filter. This clamping is typically done silently
|
of events from a single subscription filter. This clamping is typically done silently
|
||||||
by the relay, but with this number, you can know that there are additional results
|
by the relay, but with this number, you can know that there are additional results
|
||||||
if you narrowed your filter's time range or other parameters.
|
if you narrow your filter's time range or other parameters.
|
||||||
|
|
||||||
- `max_event_tags`: in any event, this is the maximum number of elements in the `tags` list.
|
- `max_event_tags`: in any event, this is the maximum number of elements in the `tags` list.
|
||||||
|
|
||||||
@@ -142,7 +152,7 @@ Even if set to False, authentication may be required for specific actions.
|
|||||||
|
|
||||||
- `payment_required`: this relay requires payment before a new connection may perform any action.
|
- `payment_required`: this relay requires payment before a new connection may perform any action.
|
||||||
|
|
||||||
- `restricted_writes`: this relay requires some kind of condition to be fulfilled in order to
|
- `restricted_writes`: this relay requires some kind of condition to be fulfilled to
|
||||||
accept events (not necessarily, but including `payment_required` and `min_pow_difficulty`).
|
accept events (not necessarily, but including `payment_required` and `min_pow_difficulty`).
|
||||||
This should only be set to `true` when users are expected to know the relay policy before trying
|
This should only be set to `true` when users are expected to know the relay policy before trying
|
||||||
to write to it -- like belonging to a special pubkey-based whitelist or writing only events of
|
to write to it -- like belonging to a special pubkey-based whitelist or writing only events of
|
||||||
@@ -152,6 +162,8 @@ a specific niche kind or content. Normal anti-spam heuristics, for example, do n
|
|||||||
|
|
||||||
- `created_at_upper_limit`: 'created_at' upper limit
|
- `created_at_upper_limit`: 'created_at' upper limit
|
||||||
|
|
||||||
|
- `default_limit`: The maximum returned events if you send a filter with the limit set to 0.
|
||||||
|
|
||||||
### Event Retention
|
### Event Retention
|
||||||
|
|
||||||
There may be a cost associated with storing data forever, so relays
|
There may be a cost associated with storing data forever, so relays
|
||||||
@@ -212,7 +224,7 @@ flexibility is up to the client software.
|
|||||||
```
|
```
|
||||||
|
|
||||||
- `relay_countries`: a list of two-level ISO country codes (ISO 3166-1 alpha-2) whose
|
- `relay_countries`: a list of two-level ISO country codes (ISO 3166-1 alpha-2) whose
|
||||||
laws and policies may affect this relay. `EU` may be used for European Union countries.
|
laws and policies may affect this relay. `EU` may be used for European Union countries. A `*` can be used for global relays.
|
||||||
|
|
||||||
Remember that a relay may be hosted in a country which is not the
|
Remember that a relay may be hosted in a country which is not the
|
||||||
country of the legal entities who own the relay, so it's very
|
country of the legal entities who own the relay, so it's very
|
||||||
@@ -237,7 +249,7 @@ To support this goal, relays MAY specify some of the following values.
|
|||||||
|
|
||||||
- `language_tags` is an ordered list
|
- `language_tags` is an ordered list
|
||||||
of [IETF language tags](https://en.wikipedia.org/wiki/IETF_language_tag) indicating
|
of [IETF language tags](https://en.wikipedia.org/wiki/IETF_language_tag) indicating
|
||||||
the major languages spoken on the relay.
|
the major languages spoken on the relay. A `*` can be used for global relays.
|
||||||
|
|
||||||
- `tags` is a list of limitations on the topics to be discussed.
|
- `tags` is a list of limitations on the topics to be discussed.
|
||||||
For example `sfw-only` indicates that only "Safe For Work" content
|
For example `sfw-only` indicates that only "Safe For Work" content
|
||||||
@@ -276,49 +288,82 @@ Relays that require payments may want to expose their fee schedules.
|
|||||||
|
|
||||||
### Examples
|
### Examples
|
||||||
|
|
||||||
As of 2 May 2023 the following command provided these results:
|
As of 25 March 2025 the following command provided these results:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ curl -H "Accept: application/nostr+json" https://eden.nostr.land | jq
|
curl -H "Accept: application/nostr+json" https://jellyfish.land | jq
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"description": "nostr.land family of relays (us-or-01)",
|
"name": "JellyFish",
|
||||||
"name": "nostr.land",
|
"description": "Stay Immortal!",
|
||||||
"pubkey": "52b4a076bcbbbdc3a1aefa3735816cf74993b1b8db202b01c883c58be7fad8bd",
|
"banner": "https://image.nostr.build/7fdefea2dec1f1ec25b8ce69362566c13b2b7f13f1726c2e4584f05f64f62496.jpg",
|
||||||
"software": "custom",
|
"pubkey": "bf2bee5281149c7c350f5d12ae32f514c7864ff10805182f4178538c2c421007",
|
||||||
|
"contact": "hi@dezh.tech",
|
||||||
|
"software": "https://github.com/dezh-tech/immortal",
|
||||||
"supported_nips": [
|
"supported_nips": [
|
||||||
1,
|
1,
|
||||||
2,
|
|
||||||
4,
|
|
||||||
9,
|
9,
|
||||||
11,
|
11,
|
||||||
12,
|
13,
|
||||||
16,
|
17,
|
||||||
20,
|
40,
|
||||||
22,
|
42,
|
||||||
28,
|
59,
|
||||||
33,
|
62,
|
||||||
40
|
70
|
||||||
],
|
],
|
||||||
"version": "1.0.1",
|
"version": "immortal - 0.0.9",
|
||||||
"limitation": {
|
"relay_countries": [
|
||||||
"payment_required": true,
|
"*"
|
||||||
"max_message_length": 65535,
|
],
|
||||||
"max_event_tags": 2000,
|
"language_tags": [
|
||||||
"max_subscriptions": 20,
|
"*"
|
||||||
"auth_required": false
|
],
|
||||||
},
|
"tags": [],
|
||||||
"payments_url": "https://eden.nostr.land",
|
"posting_policy": "https://jellyfish.land/tos.txt",
|
||||||
|
"payments_url": "https://jellyfish.land/relay",
|
||||||
|
"icon": "https://image.nostr.build/2547e9ec4b23589e09bc7071e0806c3d4293f76284c58ff331a64bce978aaee8.jpg",
|
||||||
|
"retention": [],
|
||||||
"fees": {
|
"fees": {
|
||||||
"subscription": [
|
"subscription": [
|
||||||
{
|
{
|
||||||
"amount": 2500000,
|
"amount": 3000,
|
||||||
"unit": "msats",
|
"period": 2628003,
|
||||||
"period": 2592000
|
"unit": "sats"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"amount": 8000,
|
||||||
|
"period": 7884009,
|
||||||
|
"unit": "sats"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"amount": 15000,
|
||||||
|
"period": 15768018,
|
||||||
|
"unit": "sats"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"amount": 28000,
|
||||||
|
"period": 31536036,
|
||||||
|
"unit": "sats"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"limitation": {
|
||||||
|
"auth_required": false,
|
||||||
|
"max_message_length": 70000,
|
||||||
|
"max_subid_length": 256,
|
||||||
|
"max_subscriptions": 350,
|
||||||
|
"min_pow_difficulty": 0,
|
||||||
|
"payment_required": true,
|
||||||
|
"restricted_writes": true,
|
||||||
|
"max_event_tags": 2000,
|
||||||
|
"max_content_length": 70000,
|
||||||
|
"created_at_lower_limit": 0,
|
||||||
|
"created_at_upper_limit": 2147483647,
|
||||||
|
"default_limit": 500,
|
||||||
|
"max_limit": 5000
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
79
17.md
79
17.md
@@ -15,17 +15,17 @@ Kind `14` is a chat message. `p` tags identify one or more receivers of the mess
|
|||||||
```jsonc
|
```jsonc
|
||||||
{
|
{
|
||||||
"id": "<usual hash>",
|
"id": "<usual hash>",
|
||||||
"pubkey": "<sender-pubkey>",
|
"pubkey": "<sender-pubkey>",
|
||||||
"created_at": "<current-time>",
|
"created_at": "<current-time>",
|
||||||
"kind": 14,
|
"kind": 14,
|
||||||
"tags": [
|
"tags": [
|
||||||
["p", "<receiver-1-pubkey>", "<relay-url>"],
|
["p", "<receiver-1-pubkey>", "<relay-url>"],
|
||||||
["p", "<receiver-2-pubkey>", "<relay-url>"],
|
["p", "<receiver-2-pubkey>", "<relay-url>"],
|
||||||
["e", "<kind-14-id>", "<relay-url>"] // if this is a reply
|
["e", "<kind-14-id>", "<relay-url>"] // if this is a reply
|
||||||
["subject", "<conversation-title>"],
|
["subject", "<conversation-title>"],
|
||||||
// rest of tags...
|
// rest of tags...
|
||||||
],
|
],
|
||||||
"content": "<message-in-plain-text>",
|
"content": "<message-in-plain-text>",
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -65,21 +65,22 @@ Kind `14`s MUST never be signed. If it is signed, the message might leak to rela
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Kind 15 is used for sending encrypted file event messages:
|
Kind `15` is used for sending encrypted file event messages:
|
||||||
|
|
||||||
- `file-type`: Specifies the MIME type of the attached file (e.g., `image/jpeg`, `audio/mpeg`, etc.).
|
- `file-type`: Specifies the MIME type of the attached file (e.g., `image/jpeg`, `audio/mpeg`, etc.) before encryption.
|
||||||
- `encryption-algorithm`: Indicates the encryption algorithm used for encrypting the file. Supported algorithms may include `aes-gcm`, `chacha20-poly1305`,`aes-cbc` etc.
|
- `encryption-algorithm`: Indicates the encryption algorithm used for encrypting the file. Supported algorithms: `aes-gcm`.
|
||||||
- `decryption-key`: The decryption key that will be used by the recipient to decrypt the file.
|
- `decryption-key`: The decryption key that will be used by the recipient to decrypt the file.
|
||||||
- `decryption-nonce`: The decryption nonce that will be used by the recipient to decrypt the file.
|
- `decryption-nonce`: The decryption nonce that will be used by the recipient to decrypt the file.
|
||||||
- `content`: The URL of the file (`<file-url>`).
|
- `content`: The URL of the file (`<file-url>`).
|
||||||
- `x` containing the SHA-256 hexencoded string of the file.
|
- `x` containing the SHA-256 hexencoded string of the encrypted file.
|
||||||
- `size` (optional) size of file in bytes
|
- `ox` containing the SHA-256 hexencoded string of the file before encryption.
|
||||||
- `dim` (optional) size of the file in pixels in the form `<width>x<height>`
|
- `size` (optional) size of the encrypted file in bytes
|
||||||
|
- `dim` (optional) size in pixels in the form `<width>x<height>`
|
||||||
- `blurhash`(optional) the [blurhash](https://github.com/woltapp/blurhash) to show while the client is loading the file
|
- `blurhash`(optional) the [blurhash](https://github.com/woltapp/blurhash) to show while the client is loading the file
|
||||||
- `thumb` (optional) URL of thumbnail with same aspect ratio (encrypted with the same key, nonce)
|
- `thumb` (optional) URL of thumbnail with same aspect ratio (encrypted with the same key, nonce)
|
||||||
- `fallback` (optional) zero or more fallback file sources in case `url` fails
|
- `fallback` (optional) zero or more fallback file sources in case `url` fails (encrypted with the same key, nonce)
|
||||||
|
|
||||||
Just like kind 14, kind `15`s MUST never be signed.
|
Just like kind `14`, kind `15`s MUST never be signed.
|
||||||
|
|
||||||
## Chat Rooms
|
## Chat Rooms
|
||||||
|
|
||||||
@@ -87,34 +88,34 @@ The set of `pubkey` + `p` tags defines a chat room. If a new `p` tag is added or
|
|||||||
|
|
||||||
Clients SHOULD render messages of the same room in a continuous thread.
|
Clients SHOULD render messages of the same room in a continuous thread.
|
||||||
|
|
||||||
An optional `subject` tag defines the current name/topic of the conversation. Any member can change the topic by simply submitting a new `subject` to an existing `pubkey` + `p`-tags room. There is no need to send `subject` in every message. The newest `subject` in the thread is the subject of the conversation.
|
An optional `subject` tag defines the current name/topic of the conversation. Any member can change the topic by simply submitting a new `subject` to an existing `pubkey` + `p` tags room. There is no need to send `subject` in every message. The newest `subject` in the chat room is the subject of the conversation.
|
||||||
|
|
||||||
## Encrypting
|
## Encrypting
|
||||||
|
|
||||||
Following [NIP-59](59.md), the **unsigned** `kind:14` & `kind:15` chat messages must be sealed (`kind:13`) and then gift-wrapped (`kind:1059`) to each receiver and the sender individually.
|
Following [NIP-59](59.md), the **unsigned** `kind:14` & `kind:15` chat messages must be sealed (`kind:13`) and then gift-wrapped (`kind:1059`) to each receiver and the sender individually.
|
||||||
|
|
||||||
```jsonc
|
```js
|
||||||
{
|
{
|
||||||
"id": "<usual hash>",
|
"id": "<usual hash>",
|
||||||
"pubkey": randomPublicKey,
|
"pubkey": randomPublicKey,
|
||||||
"created_at": randomTimeUpTo2DaysInThePast(),
|
"created_at": randomTimeUpTo2DaysInThePast(),
|
||||||
"kind": 1059, // gift wrap
|
"kind": 1059, // gift wrap
|
||||||
"tags": [
|
"tags": [
|
||||||
["p", receiverPublicKey, "<relay-url>"] // receiver
|
["p", receiverPublicKey, "<relay-url>"] // receiver
|
||||||
],
|
],
|
||||||
"content": nip44Encrypt(
|
"content": nip44Encrypt(
|
||||||
{
|
{
|
||||||
"id": "<usual hash>",
|
"id": "<usual hash>",
|
||||||
"pubkey": senderPublicKey,
|
"pubkey": senderPublicKey,
|
||||||
"created_at": randomTimeUpTo2DaysInThePast(),
|
"created_at": randomTimeUpTo2DaysInThePast(),
|
||||||
"kind": 13, // seal
|
"kind": 13, // seal
|
||||||
"tags": [], // no tags
|
"tags": [], // no tags
|
||||||
"content": nip44Encrypt(unsignedKind14, senderPrivateKey, receiverPublicKey),
|
"content": nip44Encrypt(unsignedKind14, senderPrivateKey, receiverPublicKey),
|
||||||
"sig": "<signed by senderPrivateKey>"
|
"sig": "<signed by senderPrivateKey>"
|
||||||
},
|
},
|
||||||
randomPrivateKey, receiverPublicKey
|
randomPrivateKey, receiverPublicKey
|
||||||
),
|
),
|
||||||
"sig": "<signed by randomPrivateKey>"
|
"sig": "<signed by randomPrivateKey>"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -124,7 +125,7 @@ Clients MUST verify if pubkey of the `kind:13` is the same pubkey on the `kind:1
|
|||||||
|
|
||||||
Clients SHOULD randomize `created_at` in up to two days in the past in both the seal and the gift wrap to make sure grouping by `created_at` doesn't reveal any metadata.
|
Clients SHOULD randomize `created_at` in up to two days in the past in both the seal and the gift wrap to make sure grouping by `created_at` doesn't reveal any metadata.
|
||||||
|
|
||||||
The gift wrap's `p`-tag can be the receiver's main pubkey or an alias key created to receive DMs without exposing the receiver's identity.
|
The gift wrap's `p` tag can be the receiver's main pubkey or an alias key created to receive DMs without exposing the receiver's identity.
|
||||||
|
|
||||||
Clients CAN offer disappearing messages by setting an `expiration` tag in the gift wrap of each receiver or by not generating a gift wrap to the sender's public key
|
Clients CAN offer disappearing messages by setting an `expiration` tag in the gift wrap of each receiver or by not generating a gift wrap to the sender's public key
|
||||||
|
|
||||||
@@ -188,7 +189,7 @@ The two final GiftWraps, one to the receiver and the other to the sender, respec
|
|||||||
"created_at":1703128320,
|
"created_at":1703128320,
|
||||||
"kind":1059,
|
"kind":1059,
|
||||||
"tags":[
|
"tags":[
|
||||||
[ "p", "918e2da906df4ccd12c8ac672d8335add131a4cf9d27ce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MNNUkK6Mk+YuaJJs6Fjw6tRHuWi57SdKKv7GGkr0zlBUU2Dyo1MwpAqzsCcCTeQSv+8qt4wLf4uhU9Br7F/L0ZY9bFgh6iLDCdB+4iABXyZwT7Ufn762195hrSHcU4Okt0Zns9EeiBOFxnmpXEslYkYBpXw70GmymQfJlFOfoEp93QKCMS2DAEVeI51dJV1e+6t3pCSsQN69Vg6jUCsm1TMxSs2VX4BRbq562+VffchvW2BB4gMjsvHVUSRl8i5/ZSDlfzSPXcSGALLHBRzy+gn0oXXJ/447VHYZJDL3Ig8+QW5oFMgnWYhuwI5QSLEyflUrfSz+Pdwn/5eyjybXKJftePBD9Q+8NQ8zulU5sqvsMeIx/bBUx0fmOXsS3vjqCXW5IjkmSUV7q54GewZqTQBlcx+90xh/LSUxXex7UwZwRnifvyCbZ+zwNTHNb12chYeNjMV7kAIr3cGQv8vlOMM8ajyaZ5KVy7HpSXQjz4PGT2/nXbL5jKt8Lx0erGXsSsazkdoYDG3U",
|
||||||
"sig":"a3c6ce632b145c0869423c1afaff4a6d764a9b64dedaf15f170b944ead67227518a72e455567ca1c2a0d187832cecbde7ed478395ec4c95dd3e71749ed66c480"
|
"sig":"a3c6ce632b145c0869423c1afaff4a6d764a9b64dedaf15f170b944ead67227518a72e455567ca1c2a0d187832cecbde7ed478395ec4c95dd3e71749ed66c480"
|
||||||
@@ -202,7 +203,7 @@ The two final GiftWraps, one to the receiver and the other to the sender, respec
|
|||||||
"created_at":1702711587,
|
"created_at":1702711587,
|
||||||
"kind":1059,
|
"kind":1059,
|
||||||
"tags":[
|
"tags":[
|
||||||
[ "p", "44900586091b284416a0c001f677f9c49f7639a55c3f1e2ec130a8e1a7998e1b"]
|
["p", "44900586091b284416a0c001f677f9c49f7639a55c3f1e2ec130a8e1a7998e1b"]
|
||||||
],
|
],
|
||||||
"content":"AsTClTzr0gzXXji7uye5UB6LYrx3HDjWGdkNaBS6BAX9CpHa+Vvtt5oI2xJrmWLen+Fo2NBOFazvl285Gb3H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P9PLoFgFPKCuctMnjXmeHoiGs756N5r1Mm1ffZu4H19MSuALJlxQR7VXE/LzxRXDuaB2u9days/6muP6gbGX1ASxbJd/ou8+viHmSC/ioHzNjItVCPaJjDyc6bv+gs1NPCt0qZ69G+JmgHW/PsMMeL4n5bh74g0fJSHqiI9ewEmOG/8bedSREv2XXtKV39STxPweceIOh0k23s3N6+wvuSUAJE7u1LkDo14cobtZ/MCw/QhimYPd1u5HnEJvRhPxz0nVPz0QqL/YQeOkAYk7uzgeb2yPzJ6DBtnTnGDkglekhVzQBFRJdk740LEj6swkJ",
|
||||||
"sig":"c94e74533b482aa8eeeb54ae72a5303e0b21f62909ca43c8ef06b0357412d6f8a92f96e1a205102753777fd25321a58fba3fb384eee114bd53ce6c06a1c22bab"
|
"sig":"c94e74533b482aa8eeeb54ae72a5303e0b21f62909ca43c8ef06b0357412d6f8a92f96e1a205102753777fd25321a58fba3fb384eee114bd53ce6c06a1c22bab"
|
||||||
|
|||||||
46
22.md
46
22.md
@@ -18,9 +18,9 @@ and `p` for the author of the parent item.
|
|||||||
|
|
||||||
```jsonc
|
```jsonc
|
||||||
{
|
{
|
||||||
kind: 1111,
|
"kind": 1111,
|
||||||
content: '<comment>',
|
"content": "<comment>",
|
||||||
tags: [
|
"tags": [
|
||||||
// root scope: event addresses, event ids, or I-tags.
|
// root scope: event addresses, event ids, or I-tags.
|
||||||
["<A, E, I>", "<address, id or I-value>", "<relay or web page hint>", "<root event's pubkey, if an E tag>"],
|
["<A, E, I>", "<address, id or I-value>", "<relay or web page hint>", "<root event's pubkey, if an E tag>"],
|
||||||
// the root item kind
|
// the root item kind
|
||||||
@@ -64,9 +64,9 @@ A comment on a blog post looks like this:
|
|||||||
|
|
||||||
```jsonc
|
```jsonc
|
||||||
{
|
{
|
||||||
kind: 1111,
|
"kind": 1111,
|
||||||
content: 'Great blog post!',
|
"content": "Great blog post!",
|
||||||
tags: [
|
"tags": [
|
||||||
// top-level comments scope to event addresses or ids
|
// top-level comments scope to event addresses or ids
|
||||||
["A", "30023:3c9849383bdea883b0bd16fece1ed36d37e37cdde3ce43b17ea4e9192ec11289:f9347ca7", "wss://example.relay"],
|
["A", "30023:3c9849383bdea883b0bd16fece1ed36d37e37cdde3ce43b17ea4e9192ec11289:f9347ca7", "wss://example.relay"],
|
||||||
// the root kind
|
// the root kind
|
||||||
@@ -91,9 +91,9 @@ A comment on a [NIP-94](94.md) file looks like this:
|
|||||||
|
|
||||||
```jsonc
|
```jsonc
|
||||||
{
|
{
|
||||||
kind: 1111,
|
"kind": 1111,
|
||||||
content: 'Great file!',
|
"content": "Great file!",
|
||||||
tags: [
|
"tags": [
|
||||||
// top-level comments have the same scope and reply to addresses or ids
|
// top-level comments have the same scope and reply to addresses or ids
|
||||||
["E", "768ac8720cdeb59227cf95e98b66560ef03d8bc9a90d721779e76e68fb42f5e6", "wss://example.relay", "3721e07b079525289877c366ccab47112bdff3d1b44758ca333feb2dbbbbe5bb"],
|
["E", "768ac8720cdeb59227cf95e98b66560ef03d8bc9a90d721779e76e68fb42f5e6", "wss://example.relay", "3721e07b079525289877c366ccab47112bdff3d1b44758ca333feb2dbbbbe5bb"],
|
||||||
// the root kind
|
// the root kind
|
||||||
@@ -115,9 +115,9 @@ A reply to a comment looks like this:
|
|||||||
|
|
||||||
```jsonc
|
```jsonc
|
||||||
{
|
{
|
||||||
kind: 1111,
|
"kind": 1111,
|
||||||
content: 'This is a reply to "Great file!"',
|
"content": "This is a reply to \"Great file!\"",
|
||||||
tags: [
|
"tags": [
|
||||||
// nip-94 file event id
|
// nip-94 file event id
|
||||||
["E", "768ac8720cdeb59227cf95e98b66560ef03d8bc9a90d721779e76e68fb42f5e6", "wss://example.relay", "fd913cd6fa9edb8405750cd02a8bbe16e158b8676c0e69fdc27436cc4a54cc9a"],
|
["E", "768ac8720cdeb59227cf95e98b66560ef03d8bc9a90d721779e76e68fb42f5e6", "wss://example.relay", "fd913cd6fa9edb8405750cd02a8bbe16e158b8676c0e69fdc27436cc4a54cc9a"],
|
||||||
// the root kind
|
// the root kind
|
||||||
@@ -138,9 +138,9 @@ A comment on a website's url looks like this:
|
|||||||
|
|
||||||
```jsonc
|
```jsonc
|
||||||
{
|
{
|
||||||
kind: 1111,
|
"kind": 1111,
|
||||||
content: 'Nice article!',
|
"content": "Nice article!",
|
||||||
tags: [
|
"tags": [
|
||||||
// referencing the root url
|
// referencing the root url
|
||||||
["I", "https://abc.com/articles/1"],
|
["I", "https://abc.com/articles/1"],
|
||||||
// the root "kind": for an url, the kind is its domain
|
// the root "kind": for an url, the kind is its domain
|
||||||
@@ -159,11 +159,11 @@ A podcast comment example:
|
|||||||
|
|
||||||
```jsonc
|
```jsonc
|
||||||
{
|
{
|
||||||
id: "80c48d992a38f9c445b943a9c9f1010b396676013443765750431a9004bdac05",
|
"id": "80c48d992a38f9c445b943a9c9f1010b396676013443765750431a9004bdac05",
|
||||||
pubkey: "252f10c83610ebca1a059c0bae8255eba2f95be4d1d7bcfa89d7248a82d9f111",
|
"pubkey": "252f10c83610ebca1a059c0bae8255eba2f95be4d1d7bcfa89d7248a82d9f111",
|
||||||
kind: 1111,
|
"kind": 1111,
|
||||||
content: "This was a great episode!",
|
"content": "This was a great episode!",
|
||||||
tags: [
|
"tags": [
|
||||||
// podcast episode reference
|
// podcast episode reference
|
||||||
["I", "podcast:item:guid:d98d189b-dc7b-45b1-8720-d4b98690f31f", "https://fountain.fm/episode/z1y9TMQRuqXl2awyrQxg"],
|
["I", "podcast:item:guid:d98d189b-dc7b-45b1-8720-d4b98690f31f", "https://fountain.fm/episode/z1y9TMQRuqXl2awyrQxg"],
|
||||||
// podcast episode type
|
// podcast episode type
|
||||||
@@ -181,9 +181,9 @@ A reply to a podcast comment:
|
|||||||
|
|
||||||
```jsonc
|
```jsonc
|
||||||
{
|
{
|
||||||
kind: 1111,
|
"kind": 1111,
|
||||||
content: "I'm replying to the above comment.",
|
"content": "I'm replying to the above comment.",
|
||||||
tags: [
|
"tags": [
|
||||||
// podcast episode reference
|
// podcast episode reference
|
||||||
["I", "podcast:item:guid:d98d189b-dc7b-45b1-8720-d4b98690f31f", "https://fountain.fm/episode/z1y9TMQRuqXl2awyrQxg"],
|
["I", "podcast:item:guid:d98d189b-dc7b-45b1-8720-d4b98690f31f", "https://fountain.fm/episode/z1y9TMQRuqXl2awyrQxg"],
|
||||||
// podcast episode type
|
// podcast episode type
|
||||||
|
|||||||
2
26.md
2
26.md
@@ -1,3 +1,5 @@
|
|||||||
|
> __Warning__ `unrecommended`: adds unecessary burden for little gain
|
||||||
|
|
||||||
NIP-26
|
NIP-26
|
||||||
=======
|
=======
|
||||||
|
|
||||||
|
|||||||
3
29.md
3
29.md
@@ -153,7 +153,6 @@ When this event is not found, clients may still connect to the group, but treat
|
|||||||
["name", "Pizza Lovers"],
|
["name", "Pizza Lovers"],
|
||||||
["picture", "https://pizza.com/pizza.png"],
|
["picture", "https://pizza.com/pizza.png"],
|
||||||
["about", "a group for people who love pizza"],
|
["about", "a group for people who love pizza"],
|
||||||
["guidelines", "Rule #1: No pineapple"]
|
|
||||||
["public"], // or ["private"]
|
["public"], // or ["private"]
|
||||||
["open"] // or ["closed"]
|
["open"] // or ["closed"]
|
||||||
]
|
]
|
||||||
@@ -161,7 +160,7 @@ When this event is not found, clients may still connect to the group, but treat
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
`name`, `picture`, `about`, and `guidelines` are basic metadata for the group for display purposes. `public` signals the group can be _read_ by anyone, while `private` signals that only AUTHed users can read. `open` signals that anyone can request to join and the request will be automatically granted, while `closed` signals that members must be pre-approved or that requests to join will be manually handled.
|
`name`, `picture` and `about` are basic metadata for the group for display purposes. `public` signals the group can be _read_ by anyone, while `private` signals that only AUTHed users can read. `open` signals that anyone can request to join and the request will be automatically granted, while `closed` signals that members must be pre-approved or that requests to join will be manually handled.
|
||||||
|
|
||||||
- *group admins* (`kind:39001`) (optional)
|
- *group admins* (`kind:39001`) (optional)
|
||||||
|
|
||||||
|
|||||||
41
51.md
41
51.md
@@ -20,22 +20,29 @@ Standard lists use normal replaceable events, meaning users may only have a sing
|
|||||||
|
|
||||||
For example, _mute list_ can contain the public keys of spammers and bad actors users don't want to see in their feeds or receive annoying notifications from.
|
For example, _mute list_ can contain the public keys of spammers and bad actors users don't want to see in their feeds or receive annoying notifications from.
|
||||||
|
|
||||||
| name | kind | description | expected tag items |
|
| name | kind | description | expected tag items |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| Mute list | 10000 | things the user doesn't want to see in their feeds | `"p"` (pubkeys), `"t"` (hashtags), `"word"` (lowercase string), `"e"` (threads) |
|
| Follow list | 3 | microblogging basic follow list, see [NIP-02](02.md) | `"p"` (pubkeys -- with optional relay hint and petname) |
|
||||||
| Pinned notes | 10001 | events the user intends to showcase in their profile page | `"e"` (kind:1 notes) |
|
| Mute list | 10000 | things the user doesn't want to see in their feeds | `"p"` (pubkeys), `"t"` (hashtags), `"word"` (lowercase string), `"e"` (threads) |
|
||||||
| Read/write relays | 10002 | where a user publishes to and where they expect mentions | see [NIP-65](65.md) |
|
| Pinned notes | 10001 | events the user intends to showcase in their profile page | `"e"` (kind:1 notes) |
|
||||||
| Bookmarks | 10003 | uncategorized, "global" list of things a user wants to save | `"e"` (kind:1 notes), `"a"` (kind:30023 articles), `"t"` (hashtags), `"r"` (URLs) |
|
| Read/write relays | 10002 | where a user publishes to and where they expect mentions | see [NIP-65](65.md) |
|
||||||
| Communities | 10004 | [NIP-72](72.md) communities the user belongs to | `"a"` (kind:34550 community definitions) |
|
| Bookmarks | 10003 | uncategorized, "global" list of things a user wants to save | `"e"` (kind:1 notes), `"a"` (kind:30023 articles), `"t"` (hashtags), `"r"` (URLs) |
|
||||||
| Public chats | 10005 | [NIP-28](28.md) chat channels the user is in | `"e"` (kind:40 channel definitions) |
|
| Communities | 10004 | [NIP-72](72.md) communities the user belongs to | `"a"` (kind:34550 community definitions) |
|
||||||
| Blocked relays | 10006 | relays clients should never connect to | `"relay"` (relay URLs) |
|
| Public chats | 10005 | [NIP-28](28.md) chat channels the user is in | `"e"` (kind:40 channel definitions) |
|
||||||
| Search relays | 10007 | relays clients should use when performing search queries | `"relay"` (relay URLs) |
|
| Blocked relays | 10006 | relays clients should never connect to | `"relay"` (relay URLs) |
|
||||||
| Simple groups | 10009 | [NIP-29](29.md) groups the user is in | `"group"` ([NIP-29](29.md) group id + relay URL + optional group name), `"r"` for each relay in use |
|
| Search relays | 10007 | relays clients should use when performing search queries | `"relay"` (relay URLs) |
|
||||||
| Interests | 10015 | topics a user may be interested in and pointers | `"t"` (hashtags) and `"a"` (kind:30015 interest set) |
|
| Simple groups | 10009 | [NIP-29](29.md) groups the user is in | `"group"` ([NIP-29](29.md) group id + relay URL + optional group name), `"r"` for each relay in use |
|
||||||
| Emojis | 10030 | user preferred emojis and pointers to emoji sets | `"emoji"` (see [NIP-30](30.md)) and `"a"` (kind:30030 emoji set) |
|
| Favorite relays | 10012 | user favorite relays and pointers to relay sets | `"relay"` (relay URLs) and `"a"` (kind:30002 relay set) |
|
||||||
| DM relays | 10050 | Where to receive [NIP-17](17.md) direct messages | `"relay"` (see [NIP-17](17.md)) |
|
| Interests | 10015 | topics a user may be interested in and pointers | `"t"` (hashtags) and `"a"` (kind:30015 interest set) |
|
||||||
| Good wiki authors | 10101 | [NIP-54](54.md) user recommended wiki authors | `"p"` (pubkeys) |
|
| Media follows | 10020 | multimedia (photos, short video) follow list | `"p"` (pubkeys -- with optional relay hint and petname) |
|
||||||
| Good wiki relays | 10102 | [NIP-54](54.md) relays deemed to only host useful articles | `"relay"` (relay URLs) |
|
| Emojis | 10030 | user preferred emojis and pointers to emoji sets | `"emoji"` (see [NIP-30](30.md)) and `"a"` (kind:30030 emoji set) |
|
||||||
|
| DM relays | 10050 | Where to receive [NIP-17](17.md) direct messages | `"relay"` (see [NIP-17](17.md)) |
|
||||||
|
| Good wiki authors | 10101 | [NIP-54](54.md) user recommended wiki authors | `"p"` (pubkeys) |
|
||||||
|
| Good wiki relays | 10102 | [NIP-54](54.md) relays deemed to only host useful articles | `"relay"` (relay URLs) |
|
||||||
|
| Video subscriptions | 10111 | [NIP-71](71.md) video-exclusive follows | `"p"` (pubkeys) |
|
||||||
|
| Good video relays | 10112 | relays deemed to only host good [NIP-71](71.md) videos | `"relay"` (relay URLs) |
|
||||||
|
| Photo subscriptions | 10111 | [NIP-68](71.md) photo-exclusive follows | `"p"` (pubkeys) |
|
||||||
|
| Good photo relays | 10112 | relays deemed to only host good [NIP-68](71.md) photos | `"relay"` (relay URLs) |
|
||||||
|
|
||||||
### Sets
|
### Sets
|
||||||
|
|
||||||
@@ -57,6 +64,8 @@ Aside from their main identifier, the `"d"` tag, sets can optionally have a `"ti
|
|||||||
| Emoji sets | 30030 | categorized emoji groups | `"emoji"` (see [NIP-30](30.md)) |
|
| Emoji sets | 30030 | categorized emoji groups | `"emoji"` (see [NIP-30](30.md)) |
|
||||||
| Release artifact sets | 30063 | group of artifacts of a software release | `"e"` (kind:1063 [file metadata](94.md) events), `"a"` (software application event) |
|
| Release artifact sets | 30063 | group of artifacts of a software release | `"e"` (kind:1063 [file metadata](94.md) events), `"a"` (software application event) |
|
||||||
| App curation sets | 30267 | references to multiple software applications | `"a"` (software application event) |
|
| App curation sets | 30267 | references to multiple software applications | `"a"` (software application event) |
|
||||||
|
| Starter packs | 39089 | a named set of profiles to be shared around with the goal of being followed together | `"p"` (pubkeys) |
|
||||||
|
| Media starter packs | 39092 | same as above, but specific to multimedia (photos, short video) clients | `"p"` (pubkeys) |
|
||||||
|
|
||||||
### Deprecated standard lists
|
### Deprecated standard lists
|
||||||
|
|
||||||
|
|||||||
2
60.md
2
60.md
@@ -68,7 +68,7 @@ There can be multiple `kind:7375` events for the same mint, and multiple proofs
|
|||||||
|
|
||||||
* `.content` is a [NIP-44](44.md) encrypted payload:
|
* `.content` is a [NIP-44](44.md) encrypted payload:
|
||||||
* `mint`: The mint the proofs belong to.
|
* `mint`: The mint the proofs belong to.
|
||||||
* `proofs`: unecoded proofs
|
* `proofs`: unencoded proofs
|
||||||
* `del`: token-ids that were destroyed by the creation of this token. This assists with state transitions.
|
* `del`: token-ids that were destroyed by the creation of this token. This assists with state transitions.
|
||||||
|
|
||||||
When one or more proofs of a token are spent, the token event should be [NIP-09](09.md)-deleted and, if some proofs are unspent from the same token event, a new token event should be created rolling over the unspent proofs and adding any change outputs to the new token event (the change output should include a `del` field).
|
When one or more proofs of a token are spent, the token event should be [NIP-09](09.md)-deleted and, if some proofs are unspent from the same token event, a new token event should be created rolling over the unspent proofs and adding any change outputs to the new token event (the change output should include a `del` field).
|
||||||
|
|||||||
8
61.md
8
61.md
@@ -46,10 +46,10 @@ Clients MUST prefix the public key they P2PK-lock with `"02"` (for nostr<>cashu
|
|||||||
|
|
||||||
```jsonc
|
```jsonc
|
||||||
{
|
{
|
||||||
kind: 9321,
|
"kind": 9321,
|
||||||
content: "Thanks for this great idea.",
|
"content": "Thanks for this great idea.",
|
||||||
pubkey: "<sender-pubkey>",
|
"pubkey": "<sender-pubkey>",
|
||||||
tags: [
|
"tags": [
|
||||||
[ "proof", "{\"amount\":1,\"C\":\"02277c66191736eb72fce9d975d08e3191f8f96afb73ab1eec37e4465683066d3f\",\"id\":\"000a93d6f8a1d2c4\",\"secret\":\"[\\\"P2PK\\\",{\\\"nonce\\\":\\\"b00bdd0467b0090a25bdf2d2f0d45ac4e355c482c1418350f273a04fedaaee83\\\",\\\"data\\\":\\\"02eaee8939e3565e48cc62967e2fde9d8e2a4b3ec0081f29eceff5c64ef10ac1ed\\\"}]\"}" ],
|
[ "proof", "{\"amount\":1,\"C\":\"02277c66191736eb72fce9d975d08e3191f8f96afb73ab1eec37e4465683066d3f\",\"id\":\"000a93d6f8a1d2c4\",\"secret\":\"[\\\"P2PK\\\",{\\\"nonce\\\":\\\"b00bdd0467b0090a25bdf2d2f0d45ac4e355c482c1418350f273a04fedaaee83\\\",\\\"data\\\":\\\"02eaee8939e3565e48cc62967e2fde9d8e2a4b3ec0081f29eceff5c64ef10ac1ed\\\"}]\"}" ],
|
||||||
[ "u", "https://stablenut.umint.cash" ],
|
[ "u", "https://stablenut.umint.cash" ],
|
||||||
[ "e", "<nutzapped-event-id>", "<relay-hint>" ],
|
[ "e", "<nutzapped-event-id>", "<relay-hint>" ],
|
||||||
|
|||||||
51
65.md
51
65.md
@@ -6,11 +6,9 @@ Relay List Metadata
|
|||||||
|
|
||||||
`draft` `optional`
|
`draft` `optional`
|
||||||
|
|
||||||
Defines a replaceable event using `kind:10002` to advertise preferred relays for discovering a user's content and receiving fresh content from others.
|
Defines a replaceable event using `kind:10002` to advertise relays where the user generally **writes** to and relays where the user generally **reads** mentions.
|
||||||
|
|
||||||
The event MUST include a list of `r` tags with relay URIs and a `read` or `write` marker. Relays marked as `read` / `write` are called READ / WRITE relays, respectively. If the marker is omitted, the relay is used for both purposes.
|
The event MUST include a list of `r` tags with relay URLs as value and an optional `read` or `write` marker. If the marker is omitted, the relay is both **read** and **write**.
|
||||||
|
|
||||||
The `.content` is not used.
|
|
||||||
|
|
||||||
```jsonc
|
```jsonc
|
||||||
{
|
{
|
||||||
@@ -26,45 +24,20 @@ The `.content` is not used.
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
This NIP doesn't fully replace relay lists that are designed to configure a client's usage of relays (such as `kind:3` style relay lists). Clients MAY use other relay lists in situations where a `kind:10002` relay list cannot be found.
|
When downloading events **from** a user, clients SHOULD use the **write** relays of that user.
|
||||||
|
|
||||||
## When to Use Read and Write Relays
|
When downloading events **about** a user, where the user was tagged (mentioned), clients SHOULD use the user's **read** relays.
|
||||||
|
|
||||||
When seeking events **from** a user, Clients SHOULD use the WRITE relays of the user's `kind:10002`.
|
When publishing an event, clients SHOULD:
|
||||||
|
|
||||||
When seeking events **about** a user, where the user was tagged, Clients SHOULD use the READ relays of the user's `kind:10002`.
|
- Send the event to the **write** relays of the author
|
||||||
|
- Send the event to all **read** relays of each tagged user
|
||||||
|
- Send the author's `kind:10002` event to all relays the event was published to
|
||||||
|
|
||||||
When broadcasting an event, Clients SHOULD:
|
### Size
|
||||||
|
|
||||||
- Broadcast the event to the WRITE relays of the author
|
Clients SHOULD guide users to keep `kind:10002` lists small (2-4 relays of each category).
|
||||||
- Broadcast the event to all READ relays of each tagged user
|
|
||||||
|
|
||||||
## Motivation
|
### Discoverability
|
||||||
|
|
||||||
The old model of using a fixed relay list per user centralizes in large relay operators:
|
Clients SHOULD spread an author's `kind:10002` event to as many relays as viable, paying attention to relays that, at any moment, serve naturally as well-known public indexers for these relay lists (where most other clients and users are connecting to in order to publish and fetch those).
|
||||||
|
|
||||||
- Most users submit their posts to the same highly popular relays, aiming to achieve greater visibility among a broader audience
|
|
||||||
- Many users are pulling events from a large number of relays in order to get more data at the expense of duplication
|
|
||||||
- Events are being copied between relays, oftentimes to many different relays
|
|
||||||
|
|
||||||
This NIP allows Clients to connect directly with the most up-to-date relay set from each individual user, eliminating the need of broadcasting events to popular relays.
|
|
||||||
|
|
||||||
## Final Considerations
|
|
||||||
|
|
||||||
1. Clients SHOULD guide users to keep `kind:10002` lists small (2-4 relays).
|
|
||||||
|
|
||||||
2. Clients SHOULD spread an author's `kind:10002` event to as many relays as viable.
|
|
||||||
|
|
||||||
3. `kind:10002` events should primarily be used to advertise the user's preferred relays to others. A user's own client may use other heuristics for selecting relays for fetching data.
|
|
||||||
|
|
||||||
4. DMs SHOULD only be broadcasted to the author's WRITE relays and to the receiver's READ relays to keep maximum privacy.
|
|
||||||
|
|
||||||
5. If a relay signals support for this NIP in their [NIP-11](11.md) document that means they're willing to accept kind 10002 events from a broad range of users, not only their paying customers or whitelisted group.
|
|
||||||
|
|
||||||
6. Clients SHOULD deduplicate connections by normalizing relay URIs according to [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-6).
|
|
||||||
|
|
||||||
7. When publishing to a relay, clients SHOULD ensure the user's `kind 10002` is also available on that relay. Relays SHOULD accept and serve `kind 10002` notes for any pubkey whose notes they store. Relays MAY scrape the network for missing `kind 10002` events. The goal here is that for any note served from a relay the user can also request the author's relay selections as a way of bootstrapping further context discovery.
|
|
||||||
|
|
||||||
## Related articles
|
|
||||||
- [Outbox model](https://mikedilger.com/gossip-model/)
|
|
||||||
- [What is the Outbox Model?](https://habla.news/u/hodlbod@coracle.social/8YjqXm4SKY-TauwjOfLXS)
|
|
||||||
|
|||||||
6
66.md
6
66.md
@@ -1,4 +1,8 @@
|
|||||||
# NIP-66: Relay Discovery and Liveness Monitoring
|
NIP-66
|
||||||
|
======
|
||||||
|
|
||||||
|
Relay Discovery and Liveness Monitoring
|
||||||
|
-------------------
|
||||||
|
|
||||||
`draft` `optional`
|
`draft` `optional`
|
||||||
|
|
||||||
|
|||||||
6
69.md
6
69.md
@@ -1,6 +1,8 @@
|
|||||||
# NIP-69
|
NIP-69
|
||||||
|
======
|
||||||
|
|
||||||
## Peer-to-peer Order events
|
Peer-to-peer Order events
|
||||||
|
-------------------------
|
||||||
|
|
||||||
`draft` `optional`
|
`draft` `optional`
|
||||||
|
|
||||||
|
|||||||
5
7D.md
5
7D.md
@@ -6,15 +6,14 @@ Threads
|
|||||||
|
|
||||||
`draft` `optional`
|
`draft` `optional`
|
||||||
|
|
||||||
A thread is a `kind 11` event. Threads SHOULD include a `subject` with a summary
|
A thread is a `kind 11` event. Threads SHOULD include a `title`.
|
||||||
of the thread's topic.
|
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"kind": 11,
|
"kind": 11,
|
||||||
"content": "Good morning",
|
"content": "Good morning",
|
||||||
"tags": [
|
"tags": [
|
||||||
["subject", "GM"]
|
["title", "GM"]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
9
84.md
9
84.md
@@ -40,3 +40,12 @@ last value of the tag.
|
|||||||
### Context
|
### Context
|
||||||
Clients MAY include a `context` tag, useful when the highlight is a subset of a paragraph and displaying the
|
Clients MAY include a `context` tag, useful when the highlight is a subset of a paragraph and displaying the
|
||||||
surrounding content might be beneficial to give context to the highlight.
|
surrounding content might be beneficial to give context to the highlight.
|
||||||
|
|
||||||
|
## Quote Highlights
|
||||||
|
A `comment` tag may be added to create a quote highlight. This MUST be rendered like a quote repost with the highlight as the quoted note.
|
||||||
|
|
||||||
|
This is to prevent the creation and multiple notes (highlight + kind 1) for a single highlight action, which looks bad in micro-blogging clients where these notes may appear in succession.
|
||||||
|
|
||||||
|
p-tag mentions MUST have a `mention` attribute to distinguish it from authors and editors.
|
||||||
|
|
||||||
|
r-tag urls from the comment MUST have a `mention` attribute to distinguish from the highlighted source url. The source url MUST have the `source` attribute.
|
||||||
|
|||||||
6
88.md
6
88.md
@@ -1,6 +1,8 @@
|
|||||||
# NIP-88
|
NIP-88
|
||||||
|
======
|
||||||
|
|
||||||
## Polls
|
Polls
|
||||||
|
-----
|
||||||
|
|
||||||
`draft` `optional`
|
`draft` `optional`
|
||||||
|
|
||||||
|
|||||||
61
B0.md
Normal file
61
B0.md
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
NIP-B0
|
||||||
|
======
|
||||||
|
|
||||||
|
Web Bookmarking
|
||||||
|
---------------
|
||||||
|
|
||||||
|
`draft` `optional`
|
||||||
|
|
||||||
|
This NIP defines `kind:39701` (an _addressable event_) for a URI as a web bookmark which uses the HTTP (Hypertext transfer protocol) scheme.
|
||||||
|
These web bookmark events are _addressable_ and deletable per [NIP-09](09.md).
|
||||||
|
|
||||||
|
### Editability
|
||||||
|
|
||||||
|
Web bookmarks are meant to be editable, so they should include a `d` tag with an identifier for the bookmark. Clients should take care to only publish and read these events from relays that implement that. If they don't do that they should also take care to hide old versions of the same bookmark they may receive.
|
||||||
|
|
||||||
|
### Format
|
||||||
|
|
||||||
|
The format uses an _addressable event_ of `kind:39701`.
|
||||||
|
|
||||||
|
The `.content` of these events should be a detailed description of the web bookmark. It is required but can be an empty string.
|
||||||
|
|
||||||
|
The `d` tag is required.
|
||||||
|
|
||||||
|
In this way web bookmarks events can be queried by the `d` tag by clients, which is just their URL without the scheme, which is always and everywhere assumed to be `https://` or `http://`.
|
||||||
|
|
||||||
|
The querystring and the hash must be removed entirely, unless their requirement is explicitly stated either by the user or by some hardcoded list of URLs that rely on querystrings for basic routing provided by the client.
|
||||||
|
|
||||||
|
### Metadata
|
||||||
|
|
||||||
|
For the date of the last update the `.created_at` field should be used. For "tags"/"hashtags" (i.e. topics about which the event might be of relevance) the `t` tag should be used.
|
||||||
|
|
||||||
|
Other metadata fields can be added as tags to the event as necessary.
|
||||||
|
|
||||||
|
* `"published_at"`, for the timestamp in unix seconds (stringified) of the first time the bookmark was published
|
||||||
|
* `"title"`, title about bookmark and can be used as a attribute for the HTML link element
|
||||||
|
|
||||||
|
## Example event
|
||||||
|
|
||||||
|
```jsonc
|
||||||
|
{
|
||||||
|
"kind": 39701,
|
||||||
|
"id": "d7a92714f81d0f712e715556aee69ea6da6bfb287e6baf794a095d301d603ec7",
|
||||||
|
"pubkey": "2729620da105979b22acfdfe9585274a78c282869b493abfa4120d3af2061298",
|
||||||
|
"created_at": 1738869705,
|
||||||
|
"tags": [
|
||||||
|
// Required tags
|
||||||
|
["d", "alice.blog/post"],
|
||||||
|
// Optional tags
|
||||||
|
["published_at", "1738863000"],
|
||||||
|
["title", "Blog insights by Alice"],
|
||||||
|
["t", "post"],
|
||||||
|
["t", "insight"]
|
||||||
|
],
|
||||||
|
"content": "A marvelous insight by Alice about the nature of blogs and posts.",
|
||||||
|
"sig": "36d34e6448fe0223e9999361c39c492a208bc423d2fcdfc2a3404e04df7c22dc65bbbd62dbe8a4373c62e4d29aac285b5aa4bb9b4b8053bd6207a8b45fbd0c98"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Replies & Comments
|
||||||
|
|
||||||
|
Replies to `kind 39701` MUST use `kind 1111` events as comments with [NIP-22](22.md).
|
||||||
41
B7.md
Normal file
41
B7.md
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
NIP-B7
|
||||||
|
======
|
||||||
|
|
||||||
|
Blossom media
|
||||||
|
-------------
|
||||||
|
|
||||||
|
`draft` `optional`
|
||||||
|
|
||||||
|
This NIP specifies how Nostr clients can use [Blossom][] for handling media.
|
||||||
|
|
||||||
|
Blossom is a set of standards (called BUDs) for dealing with servers that store files addressable by their SHA-256 sums. Nostr clients may make use of all the BUDs for allowing users to upload files, manage their own files and so on, but most importantly Nostr clients SHOULD make use of [BUD-03][] to fetch `kind:10063` lists of servers for each user:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"id": "e4bee088334cb5d38cff1616e964369c37b6081be997962ab289d6c671975d71",
|
||||||
|
"pubkey": "781208004e09102d7da3b7345e64fd193cd1bc3fce8fdae6008d77f9cabcd036",
|
||||||
|
"content": "",
|
||||||
|
"kind": 10063,
|
||||||
|
"created_at": 1708774162,
|
||||||
|
"tags": [
|
||||||
|
["server", "https://blossom.self.hosted"],
|
||||||
|
["server", "https://cdn.blossom.cloud"]
|
||||||
|
],
|
||||||
|
"sig": "cc5efa74f59e80622c77cacf4dd62076bcb7581b45e9acff471e7963a1f4d8b3406adab5ee1ac9673487480e57d20e523428e60ffcc7e7a904ac882cfccfc653"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Whenever a Nostr client finds a URL in an event published by a given user and that URL ends a 64-character hex string (with or without an ending file extension) and that URL is not available anymore, that means that string is likely a representation of a sha256 and that the user may have a `kind:10063` list of Blossom servers published.
|
||||||
|
|
||||||
|
Given that, the client SHOULD look into the `kind:10063` list for other Blossom servers and lookup for the same 64-character hex string in them, by just using the hex string as a path (optionally with the file extension at the end), producing a URL like `https://blossom.self.hosted/<hex-string>.png`.
|
||||||
|
|
||||||
|
When downloading such files Nostr clients SHOULD verify that the sha256-hash of its contents matches the 64-character hex string.
|
||||||
|
|
||||||
|
More information can be found at [BUD-03][].
|
||||||
|
|
||||||
|
### More complex interactions
|
||||||
|
|
||||||
|
Clients may use other facilities exposed by Blossom servers (for example, for checking if a file exists in a Blossom server, instead of actually downloading it) which are better documented in the [BUDs][Blossom].
|
||||||
|
|
||||||
|
[Blossom]: https://github.com/hzrd149/blossom
|
||||||
|
[BUD-03]: https://github.com/hzrd149/blossom/blob/master/buds/03.md
|
||||||
6
C0.md
6
C0.md
@@ -1,4 +1,8 @@
|
|||||||
# NIP-C0: Code Snippets
|
NIP-C0
|
||||||
|
======
|
||||||
|
|
||||||
|
Code Snippets
|
||||||
|
-------------
|
||||||
|
|
||||||
`draft` `optional`
|
`draft` `optional`
|
||||||
|
|
||||||
|
|||||||
12
README.md
12
README.md
@@ -44,7 +44,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
|
|||||||
- [NIP-23: Long-form Content](23.md)
|
- [NIP-23: Long-form Content](23.md)
|
||||||
- [NIP-24: Extra metadata fields and tags](24.md)
|
- [NIP-24: Extra metadata fields and tags](24.md)
|
||||||
- [NIP-25: Reactions](25.md)
|
- [NIP-25: Reactions](25.md)
|
||||||
- [NIP-26: Delegated Event Signing](26.md)
|
- [NIP-26: Delegated Event Signing](26.md) --- **unrecommended**: adds unecessary burden for little gain
|
||||||
- [NIP-27: Text Note References](27.md)
|
- [NIP-27: Text Note References](27.md)
|
||||||
- [NIP-28: Public Chat](28.md)
|
- [NIP-28: Public Chat](28.md)
|
||||||
- [NIP-29: Relay-based Groups](29.md)
|
- [NIP-29: Relay-based Groups](29.md)
|
||||||
@@ -89,6 +89,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
|
|||||||
- [NIP-73: External Content IDs](73.md)
|
- [NIP-73: External Content IDs](73.md)
|
||||||
- [NIP-75: Zap Goals](75.md)
|
- [NIP-75: Zap Goals](75.md)
|
||||||
- [NIP-78: Application-specific data](78.md)
|
- [NIP-78: Application-specific data](78.md)
|
||||||
|
- [NIP-7D: Threads](7D.md)
|
||||||
- [NIP-84: Highlights](84.md)
|
- [NIP-84: Highlights](84.md)
|
||||||
- [NIP-86: Relay Management API](86.md)
|
- [NIP-86: Relay Management API](86.md)
|
||||||
- [NIP-88: Polls](88.md)
|
- [NIP-88: Polls](88.md)
|
||||||
@@ -99,7 +100,8 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
|
|||||||
- [NIP-96: HTTP File Storage Integration](96.md)
|
- [NIP-96: HTTP File Storage Integration](96.md)
|
||||||
- [NIP-98: HTTP Auth](98.md)
|
- [NIP-98: HTTP Auth](98.md)
|
||||||
- [NIP-99: Classified Listings](99.md)
|
- [NIP-99: Classified Listings](99.md)
|
||||||
- [NIP-7D: Threads](7D.md)
|
- [NIP-B0: Web Bookmarks](B0.md)
|
||||||
|
- [NIP-B7: Blossom](B7.md)
|
||||||
- [NIP-C0: Code Snippets](C0.md)
|
- [NIP-C0: Code Snippets](C0.md)
|
||||||
- [NIP-C7: Chats](C7.md)
|
- [NIP-C7: Chats](C7.md)
|
||||||
|
|
||||||
@@ -185,6 +187,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
|
|||||||
| `10006` | Blocked relays list | [51](51.md) |
|
| `10006` | Blocked relays list | [51](51.md) |
|
||||||
| `10007` | Search relays list | [51](51.md) |
|
| `10007` | Search relays list | [51](51.md) |
|
||||||
| `10009` | User groups | [51](51.md), [29](29.md) |
|
| `10009` | User groups | [51](51.md), [29](29.md) |
|
||||||
|
| `10012` | Favorite relays list | [51](51.md) |
|
||||||
| `10013` | Private event relay list | [37](37.md) |
|
| `10013` | Private event relay list | [37](37.md) |
|
||||||
| `10015` | Interests list | [51](51.md) |
|
| `10015` | Interests list | [51](51.md) |
|
||||||
| `10019` | Nutzap Mint Recommendation | [61](61.md) |
|
| `10019` | Nutzap Mint Recommendation | [61](61.md) |
|
||||||
@@ -247,6 +250,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
|
|||||||
| `34550` | Community Definition | [72](72.md) |
|
| `34550` | Community Definition | [72](72.md) |
|
||||||
| `38383` | Peer-to-peer Order events | [69](69.md) |
|
| `38383` | Peer-to-peer Order events | [69](69.md) |
|
||||||
| `39000-9` | Group metadata events | [29](29.md) |
|
| `39000-9` | Group metadata events | [29](29.md) |
|
||||||
|
| `39701` | Web bookmarks | [B0](B0.md) |
|
||||||
|
|
||||||
[NUD: Custom Feeds]: https://wikifreedia.xyz/cip-01/
|
[NUD: Custom Feeds]: https://wikifreedia.xyz/cip-01/
|
||||||
[nostrocket]: https://github.com/nostrocket/NIPS/blob/main/Problems.md
|
[nostrocket]: https://github.com/nostrocket/NIPS/blob/main/Problems.md
|
||||||
@@ -341,7 +345,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
|
|||||||
| `preimage` | hash of `bolt11` invoice | -- | [57](57.md) |
|
| `preimage` | hash of `bolt11` invoice | -- | [57](57.md) |
|
||||||
| `price` | price | currency, frequency | [99](99.md) |
|
| `price` | price | currency, frequency | [99](99.md) |
|
||||||
| `proxy` | external ID | protocol | [48](48.md) |
|
| `proxy` | external ID | protocol | [48](48.md) |
|
||||||
| `published_at` | unix timestamp (string) | -- | [23](23.md) |
|
| `published_at` | unix timestamp (string) | -- | [23](23.md), [B0](B0.md) |
|
||||||
| `relay` | relay url | -- | [42](42.md), [17](17.md) |
|
| `relay` | relay url | -- | [42](42.md), [17](17.md) |
|
||||||
| `relays` | relay list | -- | [57](57.md) |
|
| `relays` | relay list | -- | [57](57.md) |
|
||||||
| `repo` | Reference to the origin repository | -- | [C0](C0.md) |
|
| `repo` | Reference to the origin repository | -- | [C0](C0.md) |
|
||||||
@@ -350,7 +354,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
|
|||||||
| `subject` | subject | -- | [14](14.md), [17](17.md), [34](34.md) |
|
| `subject` | subject | -- | [14](14.md), [17](17.md), [34](34.md) |
|
||||||
| `summary` | summary | -- | [23](23.md), [52](52.md) |
|
| `summary` | summary | -- | [23](23.md), [52](52.md) |
|
||||||
| `thumb` | badge thumbnail | dimensions in pixels | [58](58.md) |
|
| `thumb` | badge thumbnail | dimensions in pixels | [58](58.md) |
|
||||||
| `title` | article title | -- | [23](23.md) |
|
| `title` | title | -- | [23](23.md), [B0](B0.md) |
|
||||||
| `tracker` | torrent tracker URL | -- | [35](35.md) |
|
| `tracker` | torrent tracker URL | -- | [35](35.md) |
|
||||||
| `web` | webpage URL | -- | [34](34.md) |
|
| `web` | webpage URL | -- | [34](34.md) |
|
||||||
| `zap` | pubkey (hex), relay URL | weight | [57](57.md) |
|
| `zap` | pubkey (hex), relay URL | weight | [57](57.md) |
|
||||||
|
|||||||
Reference in New Issue
Block a user