mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-09-21 07:15:50 -04:00
NIP-101: Mailing lists
This commit is contained in:
parent
b4cdc1a73d
commit
17659d975b
33
101.md
Normal file
33
101.md
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
|
||||||
|
NIP-101
|
||||||
|
======
|
||||||
|
|
||||||
|
Mailing lists
|
||||||
|
-------------
|
||||||
|
|
||||||
|
`final` `optional` `author:KaffinPX`
|
||||||
|
|
||||||
|
Mailing lists are subscriptions for receiving materials from inviduals or organizations, `kind 1923` can be used for subscribing to mailing lists owned by an user.
|
||||||
|
|
||||||
|
`tags` MUST contain an entry identifying the invidiual or organization subscribing to, in the form of `["p", "<pubkey, as a hex string>"]`.
|
||||||
|
|
||||||
|
The `content` MUST contain a valid e-mail address encrypted by same method of encrypted direct messages(NIP-04) for subscribed pubkey.
|
||||||
|
|
||||||
|
`tags` MAY contain an entry identifying the topic subscribing to, in the form of `["t", "<topic>"]`.
|
||||||
|
|
||||||
|
**As example:**
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"kind": 1923,
|
||||||
|
"tags": [
|
||||||
|
["p", <pubkey>],
|
||||||
|
["t", "nostr"]
|
||||||
|
],
|
||||||
|
"content": <encrypted example@test.com>,
|
||||||
|
...
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
After that, invidual or organization can fetch, filter, decrypt and check events for subscribed e-mail addresses.
|
||||||
|
Can be unsubscribed from mailing lists by event deletion(NIP-09).
|
Loading…
Reference in New Issue
Block a user