mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-04-02 09:00:23 +02:00
more changes to separate kinds and add recommended relay instead of notes to the tags
This commit is contained in:
parent
d36ec884b6
commit
b05d68c46f
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.
|
||||
```json
|
||||
{
|
||||
"pubkey" : "5e79d85b377943fed828365d2a7712a0578272b6c1e0511154f6517e2a13925e", // bob
|
||||
"pubkey": "5e79d85b377943fed828365d2a7712a0578272b6c1e0511154f6517e2a13925e", // bob
|
||||
"kind": 9991,
|
||||
"tags": [
|
||||
[
|
||||
@ -47,7 +47,8 @@ Bob asks Alice to approve of having 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>
|
||||
}
|
||||
```
|
||||
@ -56,20 +57,22 @@ Bob asks Alice to approve of having cheesecake tonight.
|
||||
Alice approves of having cheesecake tonight.
|
||||
```json
|
||||
{
|
||||
"pubkey": "0e1db7418df1c6453ce42e7f4507b8823fc23e86e1f4f33d7fafc83d366e6e97", // alice
|
||||
"kind": 9992,
|
||||
"tags": [
|
||||
[
|
||||
"p",
|
||||
"5e79d85b377943fed828365d2a7712a0578272b6c1e0511154f6517e2a13925e",
|
||||
"5e79d85b377943fed828365d2a7712a0578272b6c1e0511154f6517e2a13925e", // bob
|
||||
"wss://r1.hashed.systems"
|
||||
],
|
||||
[
|
||||
"e",
|
||||
"the_ID_of_the_signature_request_event",
|
||||
"the_ID_of_the_signature_request_event", // per reply style spec
|
||||
"wss://r1.hashed.systems"
|
||||
],
|
||||
],
|
||||
"content": "signature:7d08c5d295ad7d5b29ba0c47e4a56323894e9b7a124a20ca59917428001b5b485d1aab20f58353b7a7e64be562d3ac5f458cc07dfe297d1850d4a5f4c18d6308¬es=sure thing",
|
||||
"sig": <signature of the nostr event>,
|
||||
<other fields>
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user