upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Calderón <fjcalderon@gmail.com>2024-11-04 11:27:17 -0300
committerFrancisco Calderón <fjcalderon@gmail.com>2024-11-04 11:27:17 -0300
commitf72a2f69ed93cf442e83bf9e7e16f6c06da40384 (patch)
treefa629862de50a29f5931e467c519902ca807cb29
parentd546936073db03e2187e3a0d1eb68e563d82201a (diff)
Add NIP number and update README
-rw-r--r--100.md (renamed from xx.md)71
-rw-r--r--README.md2
2 files changed, 36 insertions, 37 deletions
diff --git a/xx.md b/100.md
index 0543e68..8a7aac5 100644
--- a/xx.md
+++ b/100.md
@@ -1,4 +1,4 @@
1# NIP-XX 1# NIP-100
2 2
3## Peer-to-peer Order events 3## Peer-to-peer Order events
4 4
@@ -12,44 +12,40 @@ This NIP defines a simple standard for peer-to-peer order events, which enables
12 12
13## The event 13## The event
14 14
15Events are [Parameterized Replaceable Events](https://github.com/nostr-protocol/nips/blob/master/01.md#kinds) and use `38383` as event kind, a p2p event look like this: 15Events are [addressable events](https://github.com/nostr-protocol/nips/blob/master/01.md#kinds) and use `38383` as event kind, a p2p event look like this:
16 16
17```json 17```json
18[ 18{
19 "EVENT", 19 "id": "84fad0d29cb3529d789faeff2033e88fe157a48e071c6a5d1619928289420e31",
20 "RAND", 20 "pubkey": "dbe0b1be7aafd3cfba92d7463edbd4e33b2969f61bd554d37ac56f032e13355a",
21 { 21 "created_at": 1702548701,
22 "id": "84fad0d29cb3529d789faeff2033e88fe157a48e071c6a5d1619928289420e31", 22 "kind": 38383,
23 "pubkey": "dbe0b1be7aafd3cfba92d7463edbd4e33b2969f61bd554d37ac56f032e13355a", 23 "tags": [
24 "created_at": 1702548701, 24 ["d", "ede61c96-4c13-4519-bf3a-dcf7f1e9d842"],
25 "kind": 38383, 25 ["k", "sell"],
26 "tags": [ 26 ["f", "VES"],
27 ["d", "ede61c96-4c13-4519-bf3a-dcf7f1e9d842"], 27 ["s", "pending"],
28 ["k", "sell"], 28 ["amt", "0"],
29 ["f", "VES"], 29 ["fa", "100"],
30 ["s", "pending"], 30 ["pm", "face to face", "bank transfer"],
31 ["amt", "0"], 31 ["premium", "1"],
32 ["fa", "100"], 32 [
33 ["pm", "face to face", "bank transfer"], 33 "rating",
34 ["premium", "1"], 34 "{\"total_reviews\":1,\"total_rating\":3.0,\"last_rating\":3,\"max_rate\":5,\"min_rate\":1}"
35 [
36 "rating",
37 "{\"total_reviews\":1,\"total_rating\":3.0,\"last_rating\":3,\"max_rate\":5,\"min_rate\":1}"
38 ],
39 ["source", "https://t.me/p2plightning/xxxxxxx"],
40 ["network", "mainnet"],
41 ["layer", "lightning"],
42 ["name", "Nakamoto"],
43 ["g", "<geohash>"],
44 ["bond", "0"],
45 ["expiration", "1719391096"],
46 ["y", "lnp2pbot"],
47 ["z", "order"]
48 ], 35 ],
49 "content": "", 36 ["source", "https://t.me/p2plightning/xxxxxxx"],
50 "sig": "7e8fe1eb644f33ff51d8805c02a0e1a6d034e6234eac50ef7a7e0dac68a0414f7910366204fa8217086f90eddaa37ded71e61f736d1838e37c0b73f6a16c4af2" 37 ["network", "mainnet"],
51 } 38 ["layer", "lightning"],
52] 39 ["name", "Nakamoto"],
40 ["g", "<geohash>"],
41 ["bond", "0"],
42 ["expiration", "1719391096"],
43 ["y", "lnp2pbot"],
44 ["z", "order"]
45 ],
46 "content": "",
47 "sig": "7e8fe1eb644f33ff51d8805c02a0e1a6d034e6234eac50ef7a7e0dac68a0414f7910366204fa8217086f90eddaa37ded71e61f736d1838e37c0b73f6a16c4af2"
48}
53``` 49```
54 50
55## Tags 51## Tags
@@ -81,9 +77,10 @@ Currently implemented on the following platforms:
81 77
82- [Mostro](https://github.com/MostroP2P/mostro) 78- [Mostro](https://github.com/MostroP2P/mostro)
83- [@lnp2pBot](https://github.com/lnp2pBot/bot) 79- [@lnp2pBot](https://github.com/lnp2pBot/bot)
80- [Robosats](https://github.com/RoboSats/robosats/pull/1362)
84 81
85## References 82## References
86 83
87- [Mostro messages specification](https://mostro.network/messages/) 84- [Mostro protocol specification](https://mostro.network/protocol/)
88- [Messages specification for peer 2 peer NIP proposal](https://github.com/nostr-protocol/nips/blob/8250274a22f4882f621510df0054fd6167c10c9e/31001.md) 85- [Messages specification for peer 2 peer NIP proposal](https://github.com/nostr-protocol/nips/blob/8250274a22f4882f621510df0054fd6167c10c9e/31001.md)
89- [n3xB](https://github.com/nobu-maeda/n3xb) 86- [n3xB](https://github.com/nobu-maeda/n3xb)
diff --git a/README.md b/README.md
index 02773a5..2d7f71f 100644
--- a/README.md
+++ b/README.md
@@ -86,6 +86,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
86- [NIP-96: HTTP File Storage Integration](96.md) 86- [NIP-96: HTTP File Storage Integration](96.md)
87- [NIP-98: HTTP Auth](98.md) 87- [NIP-98: HTTP Auth](98.md)
88- [NIP-99: Classified Listings](99.md) 88- [NIP-99: Classified Listings](99.md)
89- [NIP-100: Peer-to-peer Order events](100.md)
89 90
90## Event Kinds 91## Event Kinds
91| kind | description | NIP | 92| kind | description | NIP |
@@ -193,6 +194,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
193| `34236` | Short-form Portrait Video Event | [71](71.md) | 194| `34236` | Short-form Portrait Video Event | [71](71.md) |
194| `34237` | Video View Event | [71](71.md) | 195| `34237` | Video View Event | [71](71.md) |
195| `34550` | Community Definition | [72](72.md) | 196| `34550` | Community Definition | [72](72.md) |
197| `38383` | Peer-to-peer Order events | [100](100.md) |
196| `39000-9` | Group metadata events | [29](29.md) | 198| `39000-9` | Group metadata events | [29](29.md) |
197 199
198[NUD: Custom Feeds]: https://wikifreedia.xyz/cip-01/97c70a44366a6535c1 200[NUD: Custom Feeds]: https://wikifreedia.xyz/cip-01/97c70a44366a6535c1