diff options
| -rw-r--r-- | 09.md | 8 | ||||
| -rw-r--r-- | 15.md | 14 | ||||
| -rw-r--r-- | 21.md | 2 | ||||
| -rw-r--r-- | 32.md | 5 | ||||
| -rw-r--r-- | 46.md | 6 | ||||
| -rw-r--r-- | 47.md | 2 |
6 files changed, 18 insertions, 19 deletions
| @@ -6,9 +6,7 @@ Event Deletion | |||
| 6 | 6 | ||
| 7 | `draft` `optional` | 7 | `draft` `optional` |
| 8 | 8 | ||
| 9 | A special event with kind `5`, meaning "deletion" is defined as having a list of one or more `e` tags, each referencing an event the author is requesting to be deleted. | 9 | A special event with kind `5`, meaning "deletion" is defined as having a list of one or more `e` or `a` tags, each referencing an event the author is requesting to be deleted. Deletion requests SHOULD include a `k` tag for the kind of each event being deleted. |
| 10 | |||
| 11 | Each tag entry must contain an "e" event id and/or `a` tags intended for deletion. | ||
| 12 | 10 | ||
| 13 | The event's `content` field MAY contain a text note describing the reason for the deletion. | 11 | The event's `content` field MAY contain a text note describing the reason for the deletion. |
| 14 | 12 | ||
| @@ -21,7 +19,9 @@ For example: | |||
| 21 | "tags": [ | 19 | "tags": [ |
| 22 | ["e", "dcd59..464a2"], | 20 | ["e", "dcd59..464a2"], |
| 23 | ["e", "968c5..ad7a4"], | 21 | ["e", "968c5..ad7a4"], |
| 24 | ["a", "<kind>:<pubkey>:<d-identifier>"] | 22 | ["a", "<kind>:<pubkey>:<d-identifier>"], |
| 23 | ["k", "1"], | ||
| 24 | ["k", "30023"] | ||
| 25 | ], | 25 | ], |
| 26 | "content": "these posts were published by accident", | 26 | "content": "these posts were published by accident", |
| 27 | ...other fields | 27 | ...other fields |
| @@ -6,7 +6,7 @@ Nostr Marketplace | |||
| 6 | 6 | ||
| 7 | `draft` `optional` | 7 | `draft` `optional` |
| 8 | 8 | ||
| 9 | Based on https://github.com/lnbits/Diagon-Alley. | 9 | Based on [Diagon-Alley](https://github.com/lnbits/Diagon-Alley). |
| 10 | 10 | ||
| 11 | Implemented in [NostrMarket](https://github.com/lnbits/nostrmarket) and [Plebeian Market](https://github.com/PlebeianTech/plebeian-market). | 11 | Implemented in [NostrMarket](https://github.com/lnbits/nostrmarket) and [Plebeian Market](https://github.com/PlebeianTech/plebeian-market). |
| 12 | 12 | ||
| @@ -139,7 +139,7 @@ Fields that are not self-explanatory: | |||
| 139 | 139 | ||
| 140 | ## Checkout events | 140 | ## Checkout events |
| 141 | 141 | ||
| 142 | All checkout events are sent as JSON strings using ([NIP-04](https://github.com/nostr-protocol/nips/blob/master/04.md)). | 142 | All checkout events are sent as JSON strings using [NIP-04](04.md). |
| 143 | 143 | ||
| 144 | The `merchant` and the `customer` can exchange JSON messages that represent different actions. Each `JSON` message `MUST` have a `type` field indicating the what the JSON represents. Possible types: | 144 | The `merchant` and the `customer` can exchange JSON messages that represent different actions. Each `JSON` message `MUST` have a `type` field indicating the what the JSON represents. Possible types: |
| 145 | 145 | ||
| @@ -150,7 +150,7 @@ The `merchant` and the `customer` can exchange JSON messages that represent diff | |||
| 150 | | 2 | Merchant | Order Status Update | | 150 | | 2 | Merchant | Order Status Update | |
| 151 | 151 | ||
| 152 | ### Step 1: `customer` order (event) | 152 | ### Step 1: `customer` order (event) |
| 153 | The below JSON goes in content of [NIP-04](https://github.com/nostr-protocol/nips/blob/master/04.md). | 153 | The below JSON goes in content of [NIP-04](04.md). |
| 154 | 154 | ||
| 155 | ```json | 155 | ```json |
| 156 | { | 156 | { |
| @@ -182,7 +182,7 @@ _Open_: is `contact.nostr` required? | |||
| 182 | 182 | ||
| 183 | Sent back from the merchant for payment. Any payment option is valid that the merchant can check. | 183 | Sent back from the merchant for payment. Any payment option is valid that the merchant can check. |
| 184 | 184 | ||
| 185 | The below JSON goes in `content` of [NIP-04](https://github.com/nostr-protocol/nips/blob/master/04.md). | 185 | The below JSON goes in `content` of [NIP-04](04.md). |
| 186 | 186 | ||
| 187 | `payment_options`/`type` include: | 187 | `payment_options`/`type` include: |
| 188 | 188 | ||
| @@ -217,7 +217,7 @@ The below JSON goes in `content` of [NIP-04](https://github.com/nostr-protocol/n | |||
| 217 | 217 | ||
| 218 | Once payment has been received and processed. | 218 | Once payment has been received and processed. |
| 219 | 219 | ||
| 220 | The below JSON goes in `content` of [NIP-04](https://github.com/nostr-protocol/nips/blob/master/04.md). | 220 | The below JSON goes in `content` of [NIP-04](04.md). |
| 221 | 221 | ||
| 222 | ```json | 222 | ```json |
| 223 | { | 223 | { |
| @@ -231,7 +231,7 @@ The below JSON goes in `content` of [NIP-04](https://github.com/nostr-protocol/n | |||
| 231 | 231 | ||
| 232 | ## Customize Marketplace | 232 | ## Customize Marketplace |
| 233 | 233 | ||
| 234 | Create a customized user experience using the `naddr` from [NIP-19](https://github.com/nostr-protocol/nips/blob/master/19.md#shareable-identifiers-with-extra-metadata). The use of `naddr` enables easy sharing of marketplace events while incorporating a rich set of metadata. This metadata can include relays, merchant profiles, and more. Subsequently, it allows merchants to be grouped into a market, empowering the market creator to configure the marketplace's user interface and user experience, and share that marketplace. This customization can encompass elements such as market name, description, logo, banner, themes, and even color schemes, offering a tailored and unique marketplace experience. | 234 | Create a customized user experience using the `naddr` from [NIP-19](19.md#shareable-identifiers-with-extra-metadata). The use of `naddr` enables easy sharing of marketplace events while incorporating a rich set of metadata. This metadata can include relays, merchant profiles, and more. Subsequently, it allows merchants to be grouped into a market, empowering the market creator to configure the marketplace's user interface and user experience, and share that marketplace. This customization can encompass elements such as market name, description, logo, banner, themes, and even color schemes, offering a tailored and unique marketplace experience. |
| 235 | 235 | ||
| 236 | ### Event `30019`: Create or update marketplace UI/UX | 236 | ### Event `30019`: Create or update marketplace UI/UX |
| 237 | 237 | ||
| @@ -331,7 +331,7 @@ Another thing that can happen is - if bids happen very close to the end date of | |||
| 331 | 331 | ||
| 332 | ## Customer support events | 332 | ## Customer support events |
| 333 | 333 | ||
| 334 | Customer support is handled over whatever communication method was specified. If communicating via nostr, NIP-04 is used https://github.com/nostr-protocol/nips/blob/master/04.md. | 334 | Customer support is handled over whatever communication method was specified. If communicating via nostr, [NIP-04](04.md) is used. |
| 335 | 335 | ||
| 336 | ## Additional | 336 | ## Additional |
| 337 | 337 | ||
| @@ -10,7 +10,7 @@ This NIP standardizes the usage of a common URI scheme for maximum interoperabil | |||
| 10 | 10 | ||
| 11 | The scheme is `nostr:`. | 11 | The scheme is `nostr:`. |
| 12 | 12 | ||
| 13 | The identifiers that come after are expected to be the same as those defined in [NIP-19](https://github.com/nostr-protocol/nips/blob/master/19.md) (except `nsec`). | 13 | The identifiers that come after are expected to be the same as those defined in [NIP-19](19.md) (except `nsec`). |
| 14 | 14 | ||
| 15 | ## Examples | 15 | ## Examples |
| 16 | 16 | ||
| @@ -6,10 +6,9 @@ Labeling | |||
| 6 | 6 | ||
| 7 | `draft` `optional` | 7 | `draft` `optional` |
| 8 | 8 | ||
| 9 | A label is a `kind 1985` event that is used to label other entities. This supports a number of use cases, | 9 | This NIP defines two new indexable tags to label events and a new event kind (`kind:1985`) to attach those labels to existing events. This supports several use cases, including distributed moderation, collection management, license assignment, and content classification. |
| 10 | including distributed moderation, collection management, license assignment, and content classification. | ||
| 11 | 10 | ||
| 12 | This NIP introduces two new tags: | 11 | New Tags: |
| 13 | 12 | ||
| 14 | - `L` denotes a label namespace | 13 | - `L` denotes a label namespace |
| 15 | - `l` denotes a label | 14 | - `l` denotes a label |
| @@ -101,7 +101,7 @@ nostrconnect://<local-keypair-pubkey>?relay=<wss://relay-to-connect-on>&metadata | |||
| 101 | } | 101 | } |
| 102 | ``` | 102 | ``` |
| 103 | 103 | ||
| 104 | The `content` field is a JSON-RPC-like message that is [NIP-04](https://github.com/nostr-protocol/nips/blob/master/04.md) encrypted and has the following structure: | 104 | The `content` field is a JSON-RPC-like message that is [NIP-04](04.md) encrypted and has the following structure: |
| 105 | 105 | ||
| 106 | ```json | 106 | ```json |
| 107 | { | 107 | { |
| @@ -148,7 +148,7 @@ The `connect` method may be provided with `optional_requested_permissions` for u | |||
| 148 | } | 148 | } |
| 149 | ``` | 149 | ``` |
| 150 | 150 | ||
| 151 | The `content` field is a JSON-RPC-like message that is [NIP-04](https://github.com/nostr-protocol/nips/blob/master/04.md) encrypted and has the following structure: | 151 | The `content` field is a JSON-RPC-like message that is [NIP-04](04.md) encrypted and has the following structure: |
| 152 | 152 | ||
| 153 | ```json | 153 | ```json |
| 154 | { | 154 | { |
| @@ -224,4 +224,4 @@ Coming soon... | |||
| 224 | 224 | ||
| 225 | ## References | 225 | ## References |
| 226 | 226 | ||
| 227 | - [NIP-04 - Encryption](https://github.com/nostr-protocol/nips/blob/master/04.md) | 227 | - [NIP-04 - Encryption](04.md) |
| @@ -38,7 +38,7 @@ a plaintext string with the supported commands, space-separated, eg. `pay_invoic | |||
| 38 | Both the request and response events SHOULD contain one `p` tag, containing the public key of the **wallet service** if this is a request, and the public key of the **user** if this is a response. The response event SHOULD contain an `e` tag with the id of the request event it is responding to. | 38 | Both the request and response events SHOULD contain one `p` tag, containing the public key of the **wallet service** if this is a request, and the public key of the **user** if this is a response. The response event SHOULD contain an `e` tag with the id of the request event it is responding to. |
| 39 | Optionally, a request can have an `expiration` tag that has a unix timestamp in seconds. If the request is received after this timestamp, it should be ignored. | 39 | Optionally, a request can have an `expiration` tag that has a unix timestamp in seconds. If the request is received after this timestamp, it should be ignored. |
| 40 | 40 | ||
| 41 | The content of requests and responses is encrypted with [NIP04](https://github.com/nostr-protocol/nips/blob/master/04.md), and is a JSON-RPCish object with a semi-fixed structure: | 41 | The content of requests and responses is encrypted with [NIP04](04.md), and is a JSON-RPCish object with a semi-fixed structure: |
| 42 | 42 | ||
| 43 | Request: | 43 | Request: |
| 44 | ```jsonc | 44 | ```jsonc |