mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-07-07 23:19:54 +02:00
more changes to separate kinds and add recommended relay instead of notes to the tags
This commit is contained in:
11
70.md
11
70.md
@ -37,7 +37,7 @@ This example event tags Bob, Charlie, David, and Erika with an optional note for
|
|||||||
Bob asks Alice to approve of having cheesecake tonight.
|
Bob asks Alice to approve of having cheesecake tonight.
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"pubkey" : "5e79d85b377943fed828365d2a7712a0578272b6c1e0511154f6517e2a13925e", // bob
|
"pubkey": "5e79d85b377943fed828365d2a7712a0578272b6c1e0511154f6517e2a13925e", // bob
|
||||||
"kind": 9991,
|
"kind": 9991,
|
||||||
"tags": [
|
"tags": [
|
||||||
[
|
[
|
||||||
@ -47,7 +47,8 @@ Bob asks Alice to approve of having cheesecake tonight.
|
|||||||
]
|
]
|
||||||
],
|
],
|
||||||
"content": "I approve of the proposal to have cheesecake tonight",
|
"content": "I approve of the proposal to have cheesecake tonight",
|
||||||
"id": "the_ID_of_the_signature_request_event" // derived based on NIP-01
|
"id": "the_ID_of_the_signature_request_event", // derived based on NIP-01
|
||||||
|
"sig": <signature of the nostr event>,
|
||||||
<other fields>
|
<other fields>
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -56,20 +57,22 @@ Bob asks Alice to approve of having cheesecake tonight.
|
|||||||
Alice approves of having cheesecake tonight.
|
Alice approves of having cheesecake tonight.
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
"pubkey": "0e1db7418df1c6453ce42e7f4507b8823fc23e86e1f4f33d7fafc83d366e6e97", // alice
|
||||||
"kind": 9992,
|
"kind": 9992,
|
||||||
"tags": [
|
"tags": [
|
||||||
[
|
[
|
||||||
"p",
|
"p",
|
||||||
"5e79d85b377943fed828365d2a7712a0578272b6c1e0511154f6517e2a13925e",
|
"5e79d85b377943fed828365d2a7712a0578272b6c1e0511154f6517e2a13925e", // bob
|
||||||
"wss://r1.hashed.systems"
|
"wss://r1.hashed.systems"
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"e",
|
"e",
|
||||||
"the_ID_of_the_signature_request_event",
|
"the_ID_of_the_signature_request_event", // per reply style spec
|
||||||
"wss://r1.hashed.systems"
|
"wss://r1.hashed.systems"
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
"content": "signature:7d08c5d295ad7d5b29ba0c47e4a56323894e9b7a124a20ca59917428001b5b485d1aab20f58353b7a7e64be562d3ac5f458cc07dfe297d1850d4a5f4c18d6308¬es=sure thing",
|
"content": "signature:7d08c5d295ad7d5b29ba0c47e4a56323894e9b7a124a20ca59917428001b5b485d1aab20f58353b7a7e64be562d3ac5f458cc07dfe297d1850d4a5f4c18d6308¬es=sure thing",
|
||||||
|
"sig": <signature of the nostr event>,
|
||||||
<other fields>
|
<other fields>
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user