chore: code format
This commit is contained in:
parent
d66184c077
commit
ffb0177003
5 changed files with 623 additions and 642 deletions
79
README.md
79
README.md
|
|
@ -1,7 +1,9 @@
|
|||
# Nostr Relay
|
||||
|
||||
### One click and spin up your own Nostr relay. Share with the world, or use privately.
|
||||
|
||||
**Configure**:
|
||||
|
||||
- Free Plan: with limitted storage (limit can be changed)
|
||||
- Paid Plan: `pay to join` and `pay for storage`
|
||||
- Storage Limit (can buy more)
|
||||
|
|
@ -11,57 +13,61 @@
|
|||
- Optional Auth for `Events` and `Filters`
|
||||
|
||||
## Supported NIPs
|
||||
- [x] **NIP-01**: Basic protocol flow
|
||||
- [x] **NIP-02**: Contact List and Petnames
|
||||
- `kind: 3`: delete past contact lists as soon as the relay receives a new one
|
||||
- [x] **NIP-04**: Encrypted Direct Message
|
||||
- if `AUTH` enabled: send only to the intended target
|
||||
- [x] **NIP-09**: Event Deletion
|
||||
- [x] **NIP-11**: Relay Information Document
|
||||
- >**Note**: the endpoint is NOT on the root level of the domain. It also includes a path (eg https://lnbits.link/nostrrelay/)
|
||||
- [ ] **NIP-12**: Generic Tag Queries
|
||||
- todo
|
||||
- [x] **NIP-15**: End of Stored Events Notice
|
||||
- [x] **NIP-16**: Event Treatment
|
||||
- [x] Regular Events
|
||||
- [x] Replaceable Events
|
||||
- [x] Ephemeral Events
|
||||
- [x] **NIP-20**: Command Results
|
||||
- todo: use correct prefixes
|
||||
- [x] **NIP-22**: Event created_at Limits
|
||||
- [ ] **NIP-26**: Delegated Event Signing
|
||||
- not planned
|
||||
- [x] **NIP-28** Public Chat
|
||||
- `kind: 41`: handled similar to `kind 0` metadata events
|
||||
- [ ] **NIP-33**: Parameterized Replaceable Events
|
||||
- todo
|
||||
- [ ] **NIP-40**: Expiration Timestamp
|
||||
- todo
|
||||
- [x] **NIP-42**: Authentication of clients to relays
|
||||
- todo: use correct prefix
|
||||
- [ ] **NIP-50**: Search Capability
|
||||
- todo
|
||||
|
||||
- [x] **NIP-01**: Basic protocol flow
|
||||
- [x] **NIP-02**: Contact List and Petnames
|
||||
- `kind: 3`: delete past contact lists as soon as the relay receives a new one
|
||||
- [x] **NIP-04**: Encrypted Direct Message
|
||||
- if `AUTH` enabled: send only to the intended target
|
||||
- [x] **NIP-09**: Event Deletion
|
||||
- [x] **NIP-11**: Relay Information Document
|
||||
- > **Note**: the endpoint is NOT on the root level of the domain. It also includes a path (eg https://lnbits.link/nostrrelay/)
|
||||
- [ ] **NIP-12**: Generic Tag Queries
|
||||
- todo
|
||||
- [x] **NIP-15**: End of Stored Events Notice
|
||||
- [x] **NIP-16**: Event Treatment
|
||||
- [x] Regular Events
|
||||
- [x] Replaceable Events
|
||||
- [x] Ephemeral Events
|
||||
- [x] **NIP-20**: Command Results
|
||||
- todo: use correct prefixes
|
||||
- [x] **NIP-22**: Event created_at Limits
|
||||
- [ ] **NIP-26**: Delegated Event Signing
|
||||
- not planned
|
||||
- [x] **NIP-28** Public Chat
|
||||
- `kind: 41`: handled similar to `kind 0` metadata events
|
||||
- [ ] **NIP-33**: Parameterized Replaceable Events
|
||||
- todo
|
||||
- [ ] **NIP-40**: Expiration Timestamp
|
||||
- todo
|
||||
- [x] **NIP-42**: Authentication of clients to relays
|
||||
- todo: use correct prefix
|
||||
- [ ] **NIP-50**: Search Capability
|
||||
- todo
|
||||
|
||||
## Create Relay
|
||||
|
||||
Creating a new relay is straightforward. Just click `New Relay` then enter the Relay Info.
|
||||
|
||||
> **Note**: admin users can select a relay id. Regular users will be assigned a generated relay id.
|
||||
The relay can be activated/deactivated.
|
||||
> The relay can be activated/deactivated.
|
||||
|
||||
- **New Relay Dialog**
|
||||
- 
|
||||
- 
|
||||
|
||||
## Configure Relay
|
||||
|
||||
Find your Relay in the list and click the expand button (`+`) to configure it.
|
||||
|
||||
### Relay Info
|
||||
|
||||
This tab contains data according to `NIP-11` (Relay Information Document).
|
||||
|
||||
> **Note**: the `domain` is added automatically and shoud be corrected manually if needed. This value is used for `NIP-42` (Authentication of clients to relays)
|
||||
|
||||
- **Relay Info Tab**
|
||||
- 
|
||||
|
||||
|
||||
### Payment
|
||||
|
||||
By default the relay is free to access, but it can be configured to ask for payments.
|
||||
|
|
@ -76,8 +82,7 @@ Click on the Relay ID (or visit `https://{your_domain}/nostrrelay/${relay_id}`)
|
|||
Here the entry and storage fees can be paid.
|
||||
|
||||
- **Relay Public Page**
|
||||
- 
|
||||
|
||||
- 
|
||||
|
||||
### Config
|
||||
|
||||
|
|
@ -90,14 +95,13 @@ Some configurations are not standard (`NIPs`) but they help control what clients
|
|||
- **Config Tab**
|
||||
- 
|
||||
|
||||
|
||||
### Accounts
|
||||
|
||||
Allows the Relay operator to `Block` or `Allow` certain accounts.
|
||||
|
||||
If an account is `allowed` then it is not required to `pay to join`.
|
||||
|
||||
When an account is `blocked` it does not matter if it `paid to join` or if it is `allowed`.
|
||||
When an account is `blocked` it does not matter if it `paid to join` or if it is `allowed`.
|
||||
|
||||
- **Accounts Tab**
|
||||
- 
|
||||
|
|
@ -105,6 +109,7 @@ When an account is `blocked` it does not matter if it `paid to join` or if it i
|
|||
## Development
|
||||
|
||||
Create Symbolic Link:
|
||||
|
||||
```
|
||||
ln -s /Users/my-user/git-repos/nostr-relay-extension/ /Users/my-user/git-repos/lnbits/lnbits/extensions/nostrrelay
|
||||
```
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Nostr Relay",
|
||||
"short_description": "One click launch your own relay!",
|
||||
"tile": "/nostrrelay/static/image/nostrrelay.png",
|
||||
"tile": "/nostrrelay/static/image/nostrrelay.png",
|
||||
"contributors": ["arcbtc", "DCs"]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"repos": [
|
||||
{
|
||||
"id": "nostrrelay",
|
||||
"organisation": "lnbits",
|
||||
"repository": "nostr-relay-extension"
|
||||
}
|
||||
]
|
||||
"repos": [
|
||||
{
|
||||
"id": "nostrrelay",
|
||||
"organisation": "lnbits",
|
||||
"repository": "nostr-relay-extension"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,384 +1,365 @@
|
|||
{
|
||||
"alice": {
|
||||
"meta": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "9d4883c31d6ae3d80fd8882a248cc193800a096d87bd55d5c1df8a237e78ca09",
|
||||
"pubkey": "0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816",
|
||||
"created_at": 1675332095,
|
||||
"kind": 0,
|
||||
"tags": [],
|
||||
"content": "{\"name\":\"Alice\"}",
|
||||
"sig": "95c30b6bbc70f3777d2b2b47ae3961e196eae0df72f3ae301ff1009cdabf9c50bb0eb7825891c842fc6ca5cb268342cc486850a6127ab40df871bd3e1fd0b0d7"
|
||||
}
|
||||
"alice": {
|
||||
"meta": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "9d4883c31d6ae3d80fd8882a248cc193800a096d87bd55d5c1df8a237e78ca09",
|
||||
"pubkey": "0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816",
|
||||
"created_at": 1675332095,
|
||||
"kind": 0,
|
||||
"tags": [],
|
||||
"content": "{\"name\":\"Alice\"}",
|
||||
"sig": "95c30b6bbc70f3777d2b2b47ae3961e196eae0df72f3ae301ff1009cdabf9c50bb0eb7825891c842fc6ca5cb268342cc486850a6127ab40df871bd3e1fd0b0d7"
|
||||
}
|
||||
],
|
||||
"meta_response": [
|
||||
"OK",
|
||||
"9d4883c31d6ae3d80fd8882a248cc193800a096d87bd55d5c1df8a237e78ca09",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"meta_update": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "2928f73760ac3a60affdf51d04169680472a8594b4584f087f497dcf6a28d12a",
|
||||
"pubkey": "0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816",
|
||||
"created_at": 1675673494,
|
||||
"kind": 0,
|
||||
"tags": [],
|
||||
"content": "{\"name\":\"Alice\",\"about\":\"Uses Hamstr\"}",
|
||||
"sig": "938313418d6d8b16b43213b3347c64925cbc1846e4447b4d878be9b865fe4b78f276ac399ea6b0aa81ed88fb18c992f2fae9e4f70c35c49202e576c54a0dc89c"
|
||||
}
|
||||
],
|
||||
"meta_update_response": [
|
||||
"OK",
|
||||
"2928f73760ac3a60affdf51d04169680472a8594b4584f087f497dcf6a28d12a",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"post01": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "05741bda9079cdf66f3be977a4d31287366470d1337b1aeb09506da4fbf7cd85",
|
||||
"pubkey": "0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816",
|
||||
"created_at": 1675332224,
|
||||
"kind": 1,
|
||||
"tags": [],
|
||||
"content": "Alice - post 01",
|
||||
"sig": "8d27c9f818ff194b491de1dc7d52d2d26916d87189ed1330315c4ff5509a986c80f34c2202302f8fe246c0b3f4e2f79103c000cbd6ca65bbe3921e14f30cb35b"
|
||||
}
|
||||
],
|
||||
"post01_response_ok": [
|
||||
"OK",
|
||||
"05741bda9079cdf66f3be977a4d31287366470d1337b1aeb09506da4fbf7cd85",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"post01_response_duplicate": [
|
||||
"OK",
|
||||
"05741bda9079cdf66f3be977a4d31287366470d1337b1aeb09506da4fbf7cd85",
|
||||
true,
|
||||
"error: failed to create event"
|
||||
],
|
||||
"post02": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "79d89e66626c4c54b007259cf068a7ba9416ffb6262cc01ba8e7cebf79b9c0d5",
|
||||
"pubkey": "0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816",
|
||||
"created_at": 1675332284,
|
||||
"kind": 1,
|
||||
"tags": [],
|
||||
"content": "Alice post 02",
|
||||
"sig": "012fc88407b0cfb967e80d1117acf6cf03410f6810039543d2290eef64e246d82ad130d08814b2564cee68e77dd0e99ea539e7a9751ef2e0914e7d93f345094e"
|
||||
}
|
||||
],
|
||||
"post02_response_ok": [
|
||||
"OK",
|
||||
"79d89e66626c4c54b007259cf068a7ba9416ffb6262cc01ba8e7cebf79b9c0d5",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"subscribe_reactions_to_me": [
|
||||
"REQ",
|
||||
"notifications:0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345",
|
||||
{
|
||||
"kinds": [1, 7, 6, 4],
|
||||
"#p": [
|
||||
"0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816"
|
||||
],
|
||||
"meta_response": [
|
||||
"OK",
|
||||
"9d4883c31d6ae3d80fd8882a248cc193800a096d87bd55d5c1df8a237e78ca09",
|
||||
true,
|
||||
""
|
||||
"limit": 400
|
||||
}
|
||||
],
|
||||
"direct_message01": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "28c96b6e80681c18a690e0e0dc6ca4e72b9d291d1d2576bc8949a07bb4bee225",
|
||||
"pubkey": "0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816",
|
||||
"created_at": 1675412967,
|
||||
"kind": 4,
|
||||
"tags": [
|
||||
[
|
||||
"p",
|
||||
"d685447c43c7c18dbbea61923cf0b63e1ab46bed69b153a48279a95c40bd414a"
|
||||
]
|
||||
],
|
||||
"meta_update": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "2928f73760ac3a60affdf51d04169680472a8594b4584f087f497dcf6a28d12a",
|
||||
"pubkey": "0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816",
|
||||
"created_at": 1675673494,
|
||||
"kind": 0,
|
||||
"tags": [],
|
||||
"content": "{\"name\":\"Alice\",\"about\":\"Uses Hamstr\"}",
|
||||
"sig": "938313418d6d8b16b43213b3347c64925cbc1846e4447b4d878be9b865fe4b78f276ac399ea6b0aa81ed88fb18c992f2fae9e4f70c35c49202e576c54a0dc89c"
|
||||
}
|
||||
"content": "BwstXDkQJAHnLOrWFzBRDHdMoF4hoXSCwgmR+K2uw237yss/i639rpR2iOIYJP4z?iv=5pTRQh6NBKfe1hyhwh2WEw==",
|
||||
"sig": "5da31b8a51dcc9fc9665db6199084696b705fc415e1be684b82fe39f3cbd271c2d707fd5a532232205a016e99ed1ef12abdacb52d139d7f5746cb693de71e5aa"
|
||||
}
|
||||
],
|
||||
"direct_message01_response": [
|
||||
"OK",
|
||||
"28c96b6e80681c18a690e0e0dc6ca4e72b9d291d1d2576bc8949a07bb4bee225",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"delete_post01": [
|
||||
"EVENT",
|
||||
{
|
||||
"kind": 5,
|
||||
"content": "deleted",
|
||||
"tags": [
|
||||
[
|
||||
"e",
|
||||
"05741bda9079cdf66f3be977a4d31287366470d1337b1aeb09506da4fbf7cd85"
|
||||
],
|
||||
["e", "mock-id", ""],
|
||||
[
|
||||
"e",
|
||||
"bb34749ffd3eb0e393e54cc90b61a7dd5f34108d4931467861d20281c0b7daea"
|
||||
]
|
||||
],
|
||||
"meta_update_response": [
|
||||
"OK",
|
||||
"2928f73760ac3a60affdf51d04169680472a8594b4584f087f497dcf6a28d12a",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"post01": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "05741bda9079cdf66f3be977a4d31287366470d1337b1aeb09506da4fbf7cd85",
|
||||
"pubkey": "0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816",
|
||||
"created_at": 1675332224,
|
||||
"kind": 1,
|
||||
"tags": [],
|
||||
"content": "Alice - post 01",
|
||||
"sig": "8d27c9f818ff194b491de1dc7d52d2d26916d87189ed1330315c4ff5509a986c80f34c2202302f8fe246c0b3f4e2f79103c000cbd6ca65bbe3921e14f30cb35b"
|
||||
}
|
||||
],
|
||||
"post01_response_ok": [
|
||||
"OK",
|
||||
"05741bda9079cdf66f3be977a4d31287366470d1337b1aeb09506da4fbf7cd85",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"post01_response_duplicate": [
|
||||
"OK",
|
||||
"05741bda9079cdf66f3be977a4d31287366470d1337b1aeb09506da4fbf7cd85",
|
||||
true,
|
||||
"error: failed to create event"
|
||||
],
|
||||
"post02": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "79d89e66626c4c54b007259cf068a7ba9416ffb6262cc01ba8e7cebf79b9c0d5",
|
||||
"pubkey": "0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816",
|
||||
"created_at": 1675332284,
|
||||
"kind": 1,
|
||||
"tags": [],
|
||||
"content": "Alice post 02",
|
||||
"sig": "012fc88407b0cfb967e80d1117acf6cf03410f6810039543d2290eef64e246d82ad130d08814b2564cee68e77dd0e99ea539e7a9751ef2e0914e7d93f345094e"
|
||||
}
|
||||
],
|
||||
"post02_response_ok": [
|
||||
"OK",
|
||||
"79d89e66626c4c54b007259cf068a7ba9416ffb6262cc01ba8e7cebf79b9c0d5",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"subscribe_reactions_to_me": [
|
||||
"REQ",
|
||||
"notifications:0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345",
|
||||
{
|
||||
"kinds": [
|
||||
1,
|
||||
7,
|
||||
6,
|
||||
4
|
||||
],
|
||||
"#p": [
|
||||
"0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816"
|
||||
],
|
||||
"limit": 400
|
||||
}
|
||||
],
|
||||
"direct_message01": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "28c96b6e80681c18a690e0e0dc6ca4e72b9d291d1d2576bc8949a07bb4bee225",
|
||||
"pubkey": "0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816",
|
||||
"created_at": 1675412967,
|
||||
"kind": 4,
|
||||
"tags": [
|
||||
[
|
||||
"p",
|
||||
"d685447c43c7c18dbbea61923cf0b63e1ab46bed69b153a48279a95c40bd414a"
|
||||
]
|
||||
],
|
||||
"content": "BwstXDkQJAHnLOrWFzBRDHdMoF4hoXSCwgmR+K2uw237yss/i639rpR2iOIYJP4z?iv=5pTRQh6NBKfe1hyhwh2WEw==",
|
||||
"sig": "5da31b8a51dcc9fc9665db6199084696b705fc415e1be684b82fe39f3cbd271c2d707fd5a532232205a016e99ed1ef12abdacb52d139d7f5746cb693de71e5aa"
|
||||
}
|
||||
],
|
||||
"direct_message01_response": [
|
||||
"OK",
|
||||
"28c96b6e80681c18a690e0e0dc6ca4e72b9d291d1d2576bc8949a07bb4bee225",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"delete_post01": [
|
||||
"EVENT",
|
||||
{
|
||||
"kind": 5,
|
||||
"content": "deleted",
|
||||
"tags": [
|
||||
[
|
||||
"e",
|
||||
"05741bda9079cdf66f3be977a4d31287366470d1337b1aeb09506da4fbf7cd85"
|
||||
],
|
||||
[
|
||||
"e",
|
||||
"mock-id",
|
||||
""
|
||||
],
|
||||
[
|
||||
"e",
|
||||
"bb34749ffd3eb0e393e54cc90b61a7dd5f34108d4931467861d20281c0b7daea"
|
||||
]
|
||||
],
|
||||
"created_at": 1675427798,
|
||||
"pubkey": "0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816",
|
||||
"id": "2751f2ee0f894268c61300c5b1a1a434f49a33a467a6f4516f10a82a1848f093",
|
||||
"sig": "8e972ba7f1ce9d11ba5d49fdd48db4a92ea999790eb604e6a7f01868a26a70a8e96e1f9e104d8f77a5aa7f29e94119e33117b4cc8a5ff9e50ec8c23eeccd94e9"
|
||||
}
|
||||
],
|
||||
"delete_post01_response": [
|
||||
"OK",
|
||||
"2751f2ee0f894268c61300c5b1a1a434f49a33a467a6f4516f10a82a1848f093",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"subscribe_to_bob_contact_list": [
|
||||
"REQ",
|
||||
"contact",
|
||||
{
|
||||
"kinds": [
|
||||
3
|
||||
],
|
||||
"authors": [
|
||||
"d685447c43c7c18dbbea61923cf0b63e1ab46bed69b153a48279a95c40bd414a"
|
||||
]
|
||||
}
|
||||
"created_at": 1675427798,
|
||||
"pubkey": "0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816",
|
||||
"id": "2751f2ee0f894268c61300c5b1a1a434f49a33a467a6f4516f10a82a1848f093",
|
||||
"sig": "8e972ba7f1ce9d11ba5d49fdd48db4a92ea999790eb604e6a7f01868a26a70a8e96e1f9e104d8f77a5aa7f29e94119e33117b4cc8a5ff9e50ec8c23eeccd94e9"
|
||||
}
|
||||
],
|
||||
"delete_post01_response": [
|
||||
"OK",
|
||||
"2751f2ee0f894268c61300c5b1a1a434f49a33a467a6f4516f10a82a1848f093",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"subscribe_to_bob_contact_list": [
|
||||
"REQ",
|
||||
"contact",
|
||||
{
|
||||
"kinds": [3],
|
||||
"authors": [
|
||||
"d685447c43c7c18dbbea61923cf0b63e1ab46bed69b153a48279a95c40bd414a"
|
||||
]
|
||||
},
|
||||
"bob": {
|
||||
"meta": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "a3591f44f9f12e8d745a79c19affc1f9ea267a716981116835ddb7b327096be5",
|
||||
"pubkey": "d685447c43c7c18dbbea61923cf0b63e1ab46bed69b153a48279a95c40bd414a",
|
||||
"created_at": 1675332410,
|
||||
"kind": 0,
|
||||
"tags": [],
|
||||
"content": "{\"name\":\"Bob\"}",
|
||||
"sig": "52b142eb5bf95e46424d8f146a0efcfd1be35ec2ae446152ccc875bc82eee66bef6df1af9a4456ec8984540ac4e21905544b5291334e2b18a24e534b788b2d81"
|
||||
}
|
||||
],
|
||||
"meta_response": [
|
||||
"OK",
|
||||
"a3591f44f9f12e8d745a79c19affc1f9ea267a716981116835ddb7b327096be5",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"request_meta_alice": [
|
||||
"REQ",
|
||||
"profile",
|
||||
{
|
||||
"kinds": [
|
||||
0
|
||||
],
|
||||
"authors": [
|
||||
"0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816"
|
||||
]
|
||||
}
|
||||
],
|
||||
"request_posts_alice": [
|
||||
"REQ",
|
||||
"sub0",
|
||||
{
|
||||
"kinds": [
|
||||
1
|
||||
],
|
||||
"authors": [
|
||||
"0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816"
|
||||
],
|
||||
"limit": 50
|
||||
}
|
||||
],
|
||||
"like_post01": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "700da4df9029a049ddecd1c586b778f434afb55e56c3016d94334108e3829db7",
|
||||
"pubkey": "d685447c43c7c18dbbea61923cf0b63e1ab46bed69b153a48279a95c40bd414a",
|
||||
"created_at": 1675350162,
|
||||
"kind": 7,
|
||||
"tags": [
|
||||
[
|
||||
"e",
|
||||
"05741bda9079cdf66f3be977a4d31287366470d1337b1aeb09506da4fbf7cd85"
|
||||
],
|
||||
[
|
||||
"p",
|
||||
"0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816"
|
||||
]
|
||||
],
|
||||
"content": "\u2764\ufe0f",
|
||||
"sig": "3522d670f2e28bd63d32184aa9617df360684e5bc4b7c791b53c5401437e1bf91d1d335f016076fdee9afa99046dc9cc06a39738b25ff9a1562ac7321e3dca2e"
|
||||
}
|
||||
],
|
||||
"like_post02": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "920ee4e856acb3310e64415183da0dd7e2e2b7e7c5a517553b9a75981fbafcc9",
|
||||
"pubkey": "d685447c43c7c18dbbea61923cf0b63e1ab46bed69b153a48279a95c40bd414a",
|
||||
"created_at": 1675332450,
|
||||
"kind": 7,
|
||||
"tags": [
|
||||
[
|
||||
"e",
|
||||
"79d89e66626c4c54b007259cf068a7ba9416ffb6262cc01ba8e7cebf79b9c0d5"
|
||||
],
|
||||
[
|
||||
"p",
|
||||
"0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816"
|
||||
]
|
||||
],
|
||||
"content": "\u2764\ufe0f",
|
||||
"sig": "90fa8093088ed9280277f10a97c41d68d9f51d24254f7b27c28f5d84ac25426f1bfc217bca0c6712a9965164b07db219ee7e583b94c4d26f00aee87344c3f17a"
|
||||
}
|
||||
],
|
||||
"like_post02_response": [
|
||||
"OK",
|
||||
"920ee4e856acb3310e64415183da0dd7e2e2b7e7c5a517553b9a75981fbafcc9",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"comment_on_alice_post01": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "bb34749ffd3eb0e393e54cc90b61a7dd5f34108d4931467861d20281c0b7daea",
|
||||
"pubkey": "d685447c43c7c18dbbea61923cf0b63e1ab46bed69b153a48279a95c40bd414a",
|
||||
"created_at": 1675332468,
|
||||
"kind": 1,
|
||||
"tags": [
|
||||
[
|
||||
"e",
|
||||
"05741bda9079cdf66f3be977a4d31287366470d1337b1aeb09506da4fbf7cd85"
|
||||
],
|
||||
[
|
||||
"p",
|
||||
"0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816"
|
||||
]
|
||||
],
|
||||
"content": "bob comment 01",
|
||||
"sig": "f9bb53e2adc27f3a49ec42d681833742e28d734327107ebba3076be226340503048116947a75274e5262fa03aa0430da6fe697e46e19342639ef208e5690d8c5"
|
||||
}
|
||||
],
|
||||
"comment_on_alice_post01_response": [
|
||||
"OK",
|
||||
"bb34749ffd3eb0e393e54cc90b61a7dd5f34108d4931467861d20281c0b7daea",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"direct_message01": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "15f6e6bd6cb538167d4430ea6bd7c0cfb99b400ca3e8879a114e90f74b3f20b2",
|
||||
"pubkey": "d685447c43c7c18dbbea61923cf0b63e1ab46bed69b153a48279a95c40bd414a",
|
||||
"created_at": 1675412687,
|
||||
"kind": 4,
|
||||
"tags": [
|
||||
[
|
||||
"p",
|
||||
"0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816"
|
||||
]
|
||||
],
|
||||
"content": "jjBSyp36t555ywERY2fI4A==?iv=+8bg2vsltrXewAywxw9m6w==",
|
||||
"sig": "091f4e8e5c497099bfe6af58126e022bc8babe648b8157c39f51e5d3906bfddf01f2f6d1a3ed36f94fbf07b009008fd448fbb8ce35b60260517aa0124a6c5c39"
|
||||
}
|
||||
],
|
||||
"direct_message01_response": [
|
||||
"OK",
|
||||
"15f6e6bd6cb538167d4430ea6bd7c0cfb99b400ca3e8879a114e90f74b3f20b2",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"subscribe_to_direct_messages": [
|
||||
"REQ",
|
||||
"notifications:d685447c43c7c18dbbea61923cf0b63e1ab46bed",
|
||||
{
|
||||
"kinds": [
|
||||
4
|
||||
],
|
||||
"#p": [
|
||||
"d685447c43c7c18dbbea61923cf0b63e1ab46bed69b153a48279a95c40bd414a"
|
||||
],
|
||||
"limit": 400
|
||||
}
|
||||
],
|
||||
"subscribe_to_delete_from_alice": [
|
||||
"REQ",
|
||||
"notifications:delete",
|
||||
{
|
||||
"kinds": [
|
||||
5
|
||||
],
|
||||
"authors": [
|
||||
"0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816"
|
||||
],
|
||||
"limit": 400
|
||||
}
|
||||
],
|
||||
"contact_list_create": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "141ddb3008ed1cc35fa09ff88d3b82da0351c6166c566e6220293136aa902a62",
|
||||
"pubkey": "d685447c43c7c18dbbea61923cf0b63e1ab46bed69b153a48279a95c40bd414a",
|
||||
"created_at": 1675350109,
|
||||
"kind": 3,
|
||||
"tags": [
|
||||
[
|
||||
"p",
|
||||
"0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816"
|
||||
]
|
||||
],
|
||||
"content": "",
|
||||
"sig": "740972ce0335fe6be7194c995e407e440b4194e49ee2775a19dc36eb5e9d8302ea8d0ab93cdc11eb345a9f8bae32c14bcbd4b7f3fe9b97d197b8426dba139847"
|
||||
}
|
||||
],
|
||||
"contact_list_create_response": [
|
||||
"OK",
|
||||
"141ddb3008ed1cc35fa09ff88d3b82da0351c6166c566e6220293136aa902a62",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"contact_list_update": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "1439f08983433295bc54d24b8c3cda2fa137d86636535a408d2d9a7bac5f0c40",
|
||||
"pubkey": "d685447c43c7c18dbbea61923cf0b63e1ab46bed69b153a48279a95c40bd414a",
|
||||
"created_at": 1675444161,
|
||||
"kind": 3,
|
||||
"tags": [
|
||||
[
|
||||
"p",
|
||||
"0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816"
|
||||
],
|
||||
[
|
||||
"p",
|
||||
"8d21cd7c3f204cbb8aaf7708445b49e6cef7da23a550f9a27d21b1122c0cb4e9"
|
||||
]
|
||||
],
|
||||
"content": "",
|
||||
"sig": "648230464f6b79063da76c1c9d06cd290c65f95fca4bac2e055f84f003847a4b9a2e144b4d77ec9f2f5289d477353a21494548d1b1fbf8795602c8914a062d50"
|
||||
}
|
||||
],
|
||||
"contact_list_update_response": [
|
||||
"OK",
|
||||
"1439f08983433295bc54d24b8c3cda2fa137d86636535a408d2d9a7bac5f0c40",
|
||||
true,
|
||||
""
|
||||
}
|
||||
]
|
||||
},
|
||||
"bob": {
|
||||
"meta": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "a3591f44f9f12e8d745a79c19affc1f9ea267a716981116835ddb7b327096be5",
|
||||
"pubkey": "d685447c43c7c18dbbea61923cf0b63e1ab46bed69b153a48279a95c40bd414a",
|
||||
"created_at": 1675332410,
|
||||
"kind": 0,
|
||||
"tags": [],
|
||||
"content": "{\"name\":\"Bob\"}",
|
||||
"sig": "52b142eb5bf95e46424d8f146a0efcfd1be35ec2ae446152ccc875bc82eee66bef6df1af9a4456ec8984540ac4e21905544b5291334e2b18a24e534b788b2d81"
|
||||
}
|
||||
],
|
||||
"meta_response": [
|
||||
"OK",
|
||||
"a3591f44f9f12e8d745a79c19affc1f9ea267a716981116835ddb7b327096be5",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"request_meta_alice": [
|
||||
"REQ",
|
||||
"profile",
|
||||
{
|
||||
"kinds": [0],
|
||||
"authors": [
|
||||
"0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"request_posts_alice": [
|
||||
"REQ",
|
||||
"sub0",
|
||||
{
|
||||
"kinds": [1],
|
||||
"authors": [
|
||||
"0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816"
|
||||
],
|
||||
"limit": 50
|
||||
}
|
||||
],
|
||||
"like_post01": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "700da4df9029a049ddecd1c586b778f434afb55e56c3016d94334108e3829db7",
|
||||
"pubkey": "d685447c43c7c18dbbea61923cf0b63e1ab46bed69b153a48279a95c40bd414a",
|
||||
"created_at": 1675350162,
|
||||
"kind": 7,
|
||||
"tags": [
|
||||
[
|
||||
"e",
|
||||
"05741bda9079cdf66f3be977a4d31287366470d1337b1aeb09506da4fbf7cd85"
|
||||
],
|
||||
[
|
||||
"p",
|
||||
"0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816"
|
||||
]
|
||||
],
|
||||
"content": "\u2764\ufe0f",
|
||||
"sig": "3522d670f2e28bd63d32184aa9617df360684e5bc4b7c791b53c5401437e1bf91d1d335f016076fdee9afa99046dc9cc06a39738b25ff9a1562ac7321e3dca2e"
|
||||
}
|
||||
],
|
||||
"like_post02": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "920ee4e856acb3310e64415183da0dd7e2e2b7e7c5a517553b9a75981fbafcc9",
|
||||
"pubkey": "d685447c43c7c18dbbea61923cf0b63e1ab46bed69b153a48279a95c40bd414a",
|
||||
"created_at": 1675332450,
|
||||
"kind": 7,
|
||||
"tags": [
|
||||
[
|
||||
"e",
|
||||
"79d89e66626c4c54b007259cf068a7ba9416ffb6262cc01ba8e7cebf79b9c0d5"
|
||||
],
|
||||
[
|
||||
"p",
|
||||
"0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816"
|
||||
]
|
||||
],
|
||||
"content": "\u2764\ufe0f",
|
||||
"sig": "90fa8093088ed9280277f10a97c41d68d9f51d24254f7b27c28f5d84ac25426f1bfc217bca0c6712a9965164b07db219ee7e583b94c4d26f00aee87344c3f17a"
|
||||
}
|
||||
],
|
||||
"like_post02_response": [
|
||||
"OK",
|
||||
"920ee4e856acb3310e64415183da0dd7e2e2b7e7c5a517553b9a75981fbafcc9",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"comment_on_alice_post01": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "bb34749ffd3eb0e393e54cc90b61a7dd5f34108d4931467861d20281c0b7daea",
|
||||
"pubkey": "d685447c43c7c18dbbea61923cf0b63e1ab46bed69b153a48279a95c40bd414a",
|
||||
"created_at": 1675332468,
|
||||
"kind": 1,
|
||||
"tags": [
|
||||
[
|
||||
"e",
|
||||
"05741bda9079cdf66f3be977a4d31287366470d1337b1aeb09506da4fbf7cd85"
|
||||
],
|
||||
[
|
||||
"p",
|
||||
"0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816"
|
||||
]
|
||||
],
|
||||
"content": "bob comment 01",
|
||||
"sig": "f9bb53e2adc27f3a49ec42d681833742e28d734327107ebba3076be226340503048116947a75274e5262fa03aa0430da6fe697e46e19342639ef208e5690d8c5"
|
||||
}
|
||||
],
|
||||
"comment_on_alice_post01_response": [
|
||||
"OK",
|
||||
"bb34749ffd3eb0e393e54cc90b61a7dd5f34108d4931467861d20281c0b7daea",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"direct_message01": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "15f6e6bd6cb538167d4430ea6bd7c0cfb99b400ca3e8879a114e90f74b3f20b2",
|
||||
"pubkey": "d685447c43c7c18dbbea61923cf0b63e1ab46bed69b153a48279a95c40bd414a",
|
||||
"created_at": 1675412687,
|
||||
"kind": 4,
|
||||
"tags": [
|
||||
[
|
||||
"p",
|
||||
"0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816"
|
||||
]
|
||||
],
|
||||
"content": "jjBSyp36t555ywERY2fI4A==?iv=+8bg2vsltrXewAywxw9m6w==",
|
||||
"sig": "091f4e8e5c497099bfe6af58126e022bc8babe648b8157c39f51e5d3906bfddf01f2f6d1a3ed36f94fbf07b009008fd448fbb8ce35b60260517aa0124a6c5c39"
|
||||
}
|
||||
],
|
||||
"direct_message01_response": [
|
||||
"OK",
|
||||
"15f6e6bd6cb538167d4430ea6bd7c0cfb99b400ca3e8879a114e90f74b3f20b2",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"subscribe_to_direct_messages": [
|
||||
"REQ",
|
||||
"notifications:d685447c43c7c18dbbea61923cf0b63e1ab46bed",
|
||||
{
|
||||
"kinds": [4],
|
||||
"#p": [
|
||||
"d685447c43c7c18dbbea61923cf0b63e1ab46bed69b153a48279a95c40bd414a"
|
||||
],
|
||||
"limit": 400
|
||||
}
|
||||
],
|
||||
"subscribe_to_delete_from_alice": [
|
||||
"REQ",
|
||||
"notifications:delete",
|
||||
{
|
||||
"kinds": [5],
|
||||
"authors": [
|
||||
"0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816"
|
||||
],
|
||||
"limit": 400
|
||||
}
|
||||
],
|
||||
"contact_list_create": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "141ddb3008ed1cc35fa09ff88d3b82da0351c6166c566e6220293136aa902a62",
|
||||
"pubkey": "d685447c43c7c18dbbea61923cf0b63e1ab46bed69b153a48279a95c40bd414a",
|
||||
"created_at": 1675350109,
|
||||
"kind": 3,
|
||||
"tags": [
|
||||
[
|
||||
"p",
|
||||
"0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816"
|
||||
]
|
||||
],
|
||||
"content": "",
|
||||
"sig": "740972ce0335fe6be7194c995e407e440b4194e49ee2775a19dc36eb5e9d8302ea8d0ab93cdc11eb345a9f8bae32c14bcbd4b7f3fe9b97d197b8426dba139847"
|
||||
}
|
||||
],
|
||||
"contact_list_create_response": [
|
||||
"OK",
|
||||
"141ddb3008ed1cc35fa09ff88d3b82da0351c6166c566e6220293136aa902a62",
|
||||
true,
|
||||
""
|
||||
],
|
||||
"contact_list_update": [
|
||||
"EVENT",
|
||||
{
|
||||
"id": "1439f08983433295bc54d24b8c3cda2fa137d86636535a408d2d9a7bac5f0c40",
|
||||
"pubkey": "d685447c43c7c18dbbea61923cf0b63e1ab46bed69b153a48279a95c40bd414a",
|
||||
"created_at": 1675444161,
|
||||
"kind": 3,
|
||||
"tags": [
|
||||
[
|
||||
"p",
|
||||
"0b29ecc73ba400e5b4bd1e4cb0d8f524e9958345749197ca21c8da38d0622816"
|
||||
],
|
||||
[
|
||||
"p",
|
||||
"8d21cd7c3f204cbb8aaf7708445b49e6cef7da23a550f9a27d21b1122c0cb4e9"
|
||||
]
|
||||
],
|
||||
"content": "",
|
||||
"sig": "648230464f6b79063da76c1c9d06cd290c65f95fca4bac2e055f84f003847a4b9a2e144b4d77ec9f2f5289d477353a21494548d1b1fbf8795602c8914a062d50"
|
||||
}
|
||||
],
|
||||
"contact_list_update_response": [
|
||||
"OK",
|
||||
"1439f08983433295bc54d24b8c3cda2fa137d86636535a408d2d9a7bac5f0c40",
|
||||
true,
|
||||
""
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,220 +1,215 @@
|
|||
{
|
||||
"valid": [
|
||||
{
|
||||
"name": "kind 0, metadata",
|
||||
"data": {
|
||||
"id": "380299ac06ef1bff58e7e5a04a2c5efcd0e15b113e71acf3440269e3bd2486f6",
|
||||
"pubkey": "ae9d97d1627f6d02376cd0ce0ceed716d573deca355649d8e03a9323aaaa2491",
|
||||
"created_at": 1675242172,
|
||||
"kind": 0,
|
||||
"tags": [],
|
||||
"content": "{\"name\":\"chrome-snort\",\"display_name\":\"the ugly\",\"about\":\"meeeee\",\"website\":\"lnbits.com\",\"lud16\":\"nostr@lnbits.com\"}",
|
||||
"sig": "2e3da396e6eb32962b31d490cefe422c02c5fa8a48a60f3ece27e1dcea374978b4a78b110e78dcff3859a6036287aceba1801df8877fc15266996d41235b7c4f"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kind 1, no tags",
|
||||
"data": {
|
||||
"kind": 1,
|
||||
"content": "i126",
|
||||
"tags": [],
|
||||
"created_at": 1675239988,
|
||||
"pubkey": "a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211",
|
||||
"id": "3219eec7427e365585d5adf26f5d2dd2709d3f0f2c0e1f79dc9021e951c67d96",
|
||||
"sig": "b1791d17052cef2a65f487ecd976952a721680da9cda4e0f11f4ea04425b1e0a273b27233a4fc50b9d98ebdf1d0722e52634db9830ba53ad8caeb1e2afc9b7d1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kind 1, reply, e & p tags",
|
||||
"data": {
|
||||
"kind": 1,
|
||||
"content": "i126 reply",
|
||||
"tags": [
|
||||
[
|
||||
"e",
|
||||
"3219eec7427e365585d5adf26f5d2dd2709d3f0f2c0e1f79dc9021e951c67d96",
|
||||
"",
|
||||
"root"
|
||||
],
|
||||
[
|
||||
"p",
|
||||
"a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211"
|
||||
]
|
||||
],
|
||||
"created_at": 1675240147,
|
||||
"pubkey": "a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211",
|
||||
"id": "6b2b6cb9c72caaf3dfbc5baa5e68d75ac62f38ec011b36cc83832218c36e4894",
|
||||
"sig": "ee855296f691880bac51148996b4200c21da7c8a54c65ab29a83a30bbace3bb5de49f6bdbe8102473211078d006b63bcc67a6e905bf22b3f2195b9e2feaa0957"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kind 3, contact list",
|
||||
"data": {
|
||||
"id": "d1e5db203ef5fb1699f106f132bae1a3b5c9c8acf4fbb6c4a50844a6827164f1",
|
||||
"pubkey": "69795541a6635015b7e18b7f3f0f663fdec952bbd92642ee879610fae2e25718",
|
||||
"created_at": 1675095502,
|
||||
"kind": 3,
|
||||
"tags": [
|
||||
[
|
||||
"p",
|
||||
"a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211"
|
||||
]
|
||||
],
|
||||
"content": "",
|
||||
"sig": "591cf6fd40c6fa6ed0b4ef47e22e52577f786a87aafcd293582076cb3ff75a9598f973fe93de833bb5a793bb3c756a853eab884323257207b2df7d217fabf9e9"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kind 3, relays",
|
||||
"data": {
|
||||
"id": "ee5fd14c3f8198bafbc70250c1c9d773069479ea456e8a11cfd889eb0eb63a9e",
|
||||
"pubkey": "a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211",
|
||||
"created_at": 1675175242,
|
||||
"kind": 3,
|
||||
"tags": [
|
||||
[
|
||||
"p",
|
||||
"4b1b856e263836ef4e2ffc439f49b5f0f7b7c4bfc6fba79019ea5f0f648c55d5"
|
||||
],
|
||||
[
|
||||
"p",
|
||||
"ba6dbec940142c806e5eebe02863968d2037ef50af33fd43b82309165eed1e2a"
|
||||
],
|
||||
[
|
||||
"p",
|
||||
"ae9d97d1627f6d02376cd0ce0ceed716d573deca355649d8e03a9323aaaa2491"
|
||||
],
|
||||
[
|
||||
"p",
|
||||
"69795541a6635015b7e18b7f3f0f663fdec952bbd92642ee879610fae2e25718"
|
||||
]
|
||||
],
|
||||
"content": "{\"wss://lnbits.link/nostrrelay/client\":{\"read\":true,\"write\":true}}",
|
||||
"sig": "279940c52322467abcfcc10a9123f6e25542a40bc7751fef4b4941de1d5382f2bee7e0fc48a744efc4c227609d619009a0ab4557b36b35ec6df8f71e2e384b3a"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kind 4, direct message",
|
||||
"data": {
|
||||
"kind": 4,
|
||||
"content": "gw8BFFM6anxgv77elHM5RQ==?iv=w1Qq4gPS3EZ4Csn1NfEgXg==",
|
||||
"tags": [
|
||||
[
|
||||
"p",
|
||||
"a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211"
|
||||
]
|
||||
],
|
||||
"created_at": 1675240247,
|
||||
"pubkey": "99a566c374211fd7f3db531f296b574a726329f509fbf3285cf3feac4e9b488e",
|
||||
"id": "e742abcd1befd0ef51fc047d5bcd3df360bf0d87f29702a333b06cb405ca40e5",
|
||||
"sig": "eb7269eec350a3a1456261fe4e53a6a58b028497bdfc469c1579940ddcfe29688b420f33b7a9d69d41a9a689e00e661749cde5a44de16a341a8b2be3df6d770d"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kind 5, delete message",
|
||||
"data": {
|
||||
"kind": 5,
|
||||
"content": "deleted",
|
||||
"tags": [
|
||||
[
|
||||
"e",
|
||||
"3219eec7427e365585d5adf26f5d2dd2709d3f0f2c0e1f79dc9021e951c67d96"
|
||||
]
|
||||
],
|
||||
"created_at": 1675241034,
|
||||
"pubkey": "a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211",
|
||||
"id": "31e27bb0133d48b4e27cc23ca533f305fd613b1485d0fc27b3d65354ae7bd4d1",
|
||||
"sig": "e6f48d78f516212f3272c73eb2a6229b7f4d8254f453d8fe3f225ecf5e1367ed6d15859c678c7d00dee0d6b545fb4967c383b559fe20e59891e229428ed2c312"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kind 6, mention (?)",
|
||||
"data": {
|
||||
"kind": 6,
|
||||
"tags": [
|
||||
[
|
||||
"e",
|
||||
"201eaebc2a3176eefa488558749a7978b5189794550c58aff885c2d362917bda",
|
||||
"",
|
||||
"mention"
|
||||
],
|
||||
[
|
||||
"p",
|
||||
"a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211"
|
||||
]
|
||||
],
|
||||
"content": "#[0]",
|
||||
"created_at": 1675240471,
|
||||
"pubkey": "99a566c374211fd7f3db531f296b574a726329f509fbf3285cf3feac4e9b488e",
|
||||
"id": "64e69392dc44972433f80bdb4889d3a5a53b6ba7a18a0f5b9518e0bebfeb202e",
|
||||
"sig": "6ae812a285be3a0bee8c4ae894bc3a92bbc4a78e03c3b1265e9e4f67668fd2c4fe59af69ab2248e49739e733e270b258384abe45f3b7e2a2fba9caebf405f74e"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kind 7, reaction",
|
||||
"data": {
|
||||
"kind": 7,
|
||||
"content": "+",
|
||||
"tags": [
|
||||
[
|
||||
"e",
|
||||
"8dacb8a9326d1b8e055386ba7f1ddf9df1cc0dd90ffe3d15802955227c311c14"
|
||||
],
|
||||
[
|
||||
"p",
|
||||
"a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211"
|
||||
]
|
||||
],
|
||||
"created_at": 1675240377,
|
||||
"pubkey": "99a566c374211fd7f3db531f296b574a726329f509fbf3285cf3feac4e9b488e",
|
||||
"id": "9ad503684485edc2d2c52d024e00d920f50c29e07c7b0e39d221c96f9eecc6da",
|
||||
"sig": "2619c94b8ae65ac153f287de810a5447bcdd9bf177b149cc1f428a7aa750a3751881bb0ef6359017ab70a45b5062d0be7205fa2c71b6c990e886486a17875947"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kind 30,000, replaceable events, 'd' tag",
|
||||
"data": {
|
||||
"kind": 30000,
|
||||
"tags": [
|
||||
[
|
||||
"d",
|
||||
"chats/null/lastOpened"
|
||||
]
|
||||
],
|
||||
"content": "1675242945",
|
||||
"created_at": 1675242945,
|
||||
"pubkey": "a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211",
|
||||
"id": "21248bddbab900b8c2f0713c925519f4f50d71eb081149f71221e69db3a5e2d1",
|
||||
"sig": "f9be83b62cbbfd6070d434758d3fe7e709947abfff701b240fca5f20fc538f35018be97fd5b236c72f7021845f3a3c805ba878269b5ddf44fe03ec161f60e5d8"
|
||||
}
|
||||
}
|
||||
],
|
||||
"invalid": [
|
||||
{
|
||||
"name": "invalid event id",
|
||||
"exception": "Invalid event id. Expected: '380299ac06ef1bff58e7e5a04a2c5efcd0e15b113e71acf3440269e3bd2486f6' got '380299ac06ef1bff58e7e5a04a2c5efcd0e15b113e71acaaaaaaaaaaaaaaaaaa'",
|
||||
"data": {
|
||||
"id": "380299ac06ef1bff58e7e5a04a2c5efcd0e15b113e71acaaaaaaaaaaaaaaaaaa",
|
||||
"pubkey": "ae9d97d1627f6d02376cd0ce0ceed716d573deca355649d8e03a9323aaaa2491",
|
||||
"created_at": 1675242172,
|
||||
"kind": 0,
|
||||
"tags": [],
|
||||
"content": "{\"name\":\"chrome-snort\",\"display_name\":\"the ugly\",\"about\":\"meeeee\",\"website\":\"lnbits.com\",\"lud16\":\"nostr@lnbits.com\"}",
|
||||
"sig": "2e3da396e6eb32962b31d490cefe422c02c5fa8a48a60f3ece27e1dcea374978b4a78b110e78dcff3859a6036287aceba1801df8877fc15266996d41235b7c4f"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "invalid signature",
|
||||
"exception": "Invalid signature: 'b1791d17052cef2a65f487ecd976952a721680da9cda4e0f11f4ea04425b1e0a273b27233a4fc50b9d98ebdf1d0722e52634dbaaaaaaaaaaaaaaaaaaaaaaaaaa' for event '3219eec7427e365585d5adf26f5d2dd2709d3f0f2c0e1f79dc9021e951c67d96'",
|
||||
"data": {
|
||||
"kind": 1,
|
||||
"content": "i126",
|
||||
"tags": [],
|
||||
"created_at": 1675239988,
|
||||
"pubkey": "a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211",
|
||||
"id": "3219eec7427e365585d5adf26f5d2dd2709d3f0f2c0e1f79dc9021e951c67d96",
|
||||
"sig": "b1791d17052cef2a65f487ecd976952a721680da9cda4e0f11f4ea04425b1e0a273b27233a4fc50b9d98ebdf1d0722e52634dbaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
"valid": [
|
||||
{
|
||||
"name": "kind 0, metadata",
|
||||
"data": {
|
||||
"id": "380299ac06ef1bff58e7e5a04a2c5efcd0e15b113e71acf3440269e3bd2486f6",
|
||||
"pubkey": "ae9d97d1627f6d02376cd0ce0ceed716d573deca355649d8e03a9323aaaa2491",
|
||||
"created_at": 1675242172,
|
||||
"kind": 0,
|
||||
"tags": [],
|
||||
"content": "{\"name\":\"chrome-snort\",\"display_name\":\"the ugly\",\"about\":\"meeeee\",\"website\":\"lnbits.com\",\"lud16\":\"nostr@lnbits.com\"}",
|
||||
"sig": "2e3da396e6eb32962b31d490cefe422c02c5fa8a48a60f3ece27e1dcea374978b4a78b110e78dcff3859a6036287aceba1801df8877fc15266996d41235b7c4f"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kind 1, no tags",
|
||||
"data": {
|
||||
"kind": 1,
|
||||
"content": "i126",
|
||||
"tags": [],
|
||||
"created_at": 1675239988,
|
||||
"pubkey": "a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211",
|
||||
"id": "3219eec7427e365585d5adf26f5d2dd2709d3f0f2c0e1f79dc9021e951c67d96",
|
||||
"sig": "b1791d17052cef2a65f487ecd976952a721680da9cda4e0f11f4ea04425b1e0a273b27233a4fc50b9d98ebdf1d0722e52634db9830ba53ad8caeb1e2afc9b7d1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kind 1, reply, e & p tags",
|
||||
"data": {
|
||||
"kind": 1,
|
||||
"content": "i126 reply",
|
||||
"tags": [
|
||||
[
|
||||
"e",
|
||||
"3219eec7427e365585d5adf26f5d2dd2709d3f0f2c0e1f79dc9021e951c67d96",
|
||||
"",
|
||||
"root"
|
||||
],
|
||||
[
|
||||
"p",
|
||||
"a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211"
|
||||
]
|
||||
],
|
||||
"created_at": 1675240147,
|
||||
"pubkey": "a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211",
|
||||
"id": "6b2b6cb9c72caaf3dfbc5baa5e68d75ac62f38ec011b36cc83832218c36e4894",
|
||||
"sig": "ee855296f691880bac51148996b4200c21da7c8a54c65ab29a83a30bbace3bb5de49f6bdbe8102473211078d006b63bcc67a6e905bf22b3f2195b9e2feaa0957"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kind 3, contact list",
|
||||
"data": {
|
||||
"id": "d1e5db203ef5fb1699f106f132bae1a3b5c9c8acf4fbb6c4a50844a6827164f1",
|
||||
"pubkey": "69795541a6635015b7e18b7f3f0f663fdec952bbd92642ee879610fae2e25718",
|
||||
"created_at": 1675095502,
|
||||
"kind": 3,
|
||||
"tags": [
|
||||
[
|
||||
"p",
|
||||
"a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211"
|
||||
]
|
||||
],
|
||||
"content": "",
|
||||
"sig": "591cf6fd40c6fa6ed0b4ef47e22e52577f786a87aafcd293582076cb3ff75a9598f973fe93de833bb5a793bb3c756a853eab884323257207b2df7d217fabf9e9"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kind 3, relays",
|
||||
"data": {
|
||||
"id": "ee5fd14c3f8198bafbc70250c1c9d773069479ea456e8a11cfd889eb0eb63a9e",
|
||||
"pubkey": "a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211",
|
||||
"created_at": 1675175242,
|
||||
"kind": 3,
|
||||
"tags": [
|
||||
[
|
||||
"p",
|
||||
"4b1b856e263836ef4e2ffc439f49b5f0f7b7c4bfc6fba79019ea5f0f648c55d5"
|
||||
],
|
||||
[
|
||||
"p",
|
||||
"ba6dbec940142c806e5eebe02863968d2037ef50af33fd43b82309165eed1e2a"
|
||||
],
|
||||
[
|
||||
"p",
|
||||
"ae9d97d1627f6d02376cd0ce0ceed716d573deca355649d8e03a9323aaaa2491"
|
||||
],
|
||||
[
|
||||
"p",
|
||||
"69795541a6635015b7e18b7f3f0f663fdec952bbd92642ee879610fae2e25718"
|
||||
]
|
||||
],
|
||||
"content": "{\"wss://lnbits.link/nostrrelay/client\":{\"read\":true,\"write\":true}}",
|
||||
"sig": "279940c52322467abcfcc10a9123f6e25542a40bc7751fef4b4941de1d5382f2bee7e0fc48a744efc4c227609d619009a0ab4557b36b35ec6df8f71e2e384b3a"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kind 4, direct message",
|
||||
"data": {
|
||||
"kind": 4,
|
||||
"content": "gw8BFFM6anxgv77elHM5RQ==?iv=w1Qq4gPS3EZ4Csn1NfEgXg==",
|
||||
"tags": [
|
||||
[
|
||||
"p",
|
||||
"a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211"
|
||||
]
|
||||
],
|
||||
"created_at": 1675240247,
|
||||
"pubkey": "99a566c374211fd7f3db531f296b574a726329f509fbf3285cf3feac4e9b488e",
|
||||
"id": "e742abcd1befd0ef51fc047d5bcd3df360bf0d87f29702a333b06cb405ca40e5",
|
||||
"sig": "eb7269eec350a3a1456261fe4e53a6a58b028497bdfc469c1579940ddcfe29688b420f33b7a9d69d41a9a689e00e661749cde5a44de16a341a8b2be3df6d770d"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kind 5, delete message",
|
||||
"data": {
|
||||
"kind": 5,
|
||||
"content": "deleted",
|
||||
"tags": [
|
||||
[
|
||||
"e",
|
||||
"3219eec7427e365585d5adf26f5d2dd2709d3f0f2c0e1f79dc9021e951c67d96"
|
||||
]
|
||||
],
|
||||
"created_at": 1675241034,
|
||||
"pubkey": "a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211",
|
||||
"id": "31e27bb0133d48b4e27cc23ca533f305fd613b1485d0fc27b3d65354ae7bd4d1",
|
||||
"sig": "e6f48d78f516212f3272c73eb2a6229b7f4d8254f453d8fe3f225ecf5e1367ed6d15859c678c7d00dee0d6b545fb4967c383b559fe20e59891e229428ed2c312"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kind 6, mention (?)",
|
||||
"data": {
|
||||
"kind": 6,
|
||||
"tags": [
|
||||
[
|
||||
"e",
|
||||
"201eaebc2a3176eefa488558749a7978b5189794550c58aff885c2d362917bda",
|
||||
"",
|
||||
"mention"
|
||||
],
|
||||
[
|
||||
"p",
|
||||
"a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211"
|
||||
]
|
||||
],
|
||||
"content": "#[0]",
|
||||
"created_at": 1675240471,
|
||||
"pubkey": "99a566c374211fd7f3db531f296b574a726329f509fbf3285cf3feac4e9b488e",
|
||||
"id": "64e69392dc44972433f80bdb4889d3a5a53b6ba7a18a0f5b9518e0bebfeb202e",
|
||||
"sig": "6ae812a285be3a0bee8c4ae894bc3a92bbc4a78e03c3b1265e9e4f67668fd2c4fe59af69ab2248e49739e733e270b258384abe45f3b7e2a2fba9caebf405f74e"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kind 7, reaction",
|
||||
"data": {
|
||||
"kind": 7,
|
||||
"content": "+",
|
||||
"tags": [
|
||||
[
|
||||
"e",
|
||||
"8dacb8a9326d1b8e055386ba7f1ddf9df1cc0dd90ffe3d15802955227c311c14"
|
||||
],
|
||||
[
|
||||
"p",
|
||||
"a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211"
|
||||
]
|
||||
],
|
||||
"created_at": 1675240377,
|
||||
"pubkey": "99a566c374211fd7f3db531f296b574a726329f509fbf3285cf3feac4e9b488e",
|
||||
"id": "9ad503684485edc2d2c52d024e00d920f50c29e07c7b0e39d221c96f9eecc6da",
|
||||
"sig": "2619c94b8ae65ac153f287de810a5447bcdd9bf177b149cc1f428a7aa750a3751881bb0ef6359017ab70a45b5062d0be7205fa2c71b6c990e886486a17875947"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kind 30,000, replaceable events, 'd' tag",
|
||||
"data": {
|
||||
"kind": 30000,
|
||||
"tags": [["d", "chats/null/lastOpened"]],
|
||||
"content": "1675242945",
|
||||
"created_at": 1675242945,
|
||||
"pubkey": "a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211",
|
||||
"id": "21248bddbab900b8c2f0713c925519f4f50d71eb081149f71221e69db3a5e2d1",
|
||||
"sig": "f9be83b62cbbfd6070d434758d3fe7e709947abfff701b240fca5f20fc538f35018be97fd5b236c72f7021845f3a3c805ba878269b5ddf44fe03ec161f60e5d8"
|
||||
}
|
||||
}
|
||||
],
|
||||
"invalid": [
|
||||
{
|
||||
"name": "invalid event id",
|
||||
"exception": "Invalid event id. Expected: '380299ac06ef1bff58e7e5a04a2c5efcd0e15b113e71acf3440269e3bd2486f6' got '380299ac06ef1bff58e7e5a04a2c5efcd0e15b113e71acaaaaaaaaaaaaaaaaaa'",
|
||||
"data": {
|
||||
"id": "380299ac06ef1bff58e7e5a04a2c5efcd0e15b113e71acaaaaaaaaaaaaaaaaaa",
|
||||
"pubkey": "ae9d97d1627f6d02376cd0ce0ceed716d573deca355649d8e03a9323aaaa2491",
|
||||
"created_at": 1675242172,
|
||||
"kind": 0,
|
||||
"tags": [],
|
||||
"content": "{\"name\":\"chrome-snort\",\"display_name\":\"the ugly\",\"about\":\"meeeee\",\"website\":\"lnbits.com\",\"lud16\":\"nostr@lnbits.com\"}",
|
||||
"sig": "2e3da396e6eb32962b31d490cefe422c02c5fa8a48a60f3ece27e1dcea374978b4a78b110e78dcff3859a6036287aceba1801df8877fc15266996d41235b7c4f"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "invalid signature",
|
||||
"exception": "Invalid signature: 'b1791d17052cef2a65f487ecd976952a721680da9cda4e0f11f4ea04425b1e0a273b27233a4fc50b9d98ebdf1d0722e52634dbaaaaaaaaaaaaaaaaaaaaaaaaaa' for event '3219eec7427e365585d5adf26f5d2dd2709d3f0f2c0e1f79dc9021e951c67d96'",
|
||||
"data": {
|
||||
"kind": 1,
|
||||
"content": "i126",
|
||||
"tags": [],
|
||||
"created_at": 1675239988,
|
||||
"pubkey": "a24496bca5dd73300f4e5d5d346c73132b7354c597fcbb6509891747b4689211",
|
||||
"id": "3219eec7427e365585d5adf26f5d2dd2709d3f0f2c0e1f79dc9021e951c67d96",
|
||||
"sig": "b1791d17052cef2a65f487ecd976952a721680da9cda4e0f11f4ea04425b1e0a273b27233a4fc50b9d98ebdf1d0722e52634dbaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue