NIP-60: Record Events

This commit is contained in:
Alex Gleason 2024-06-20 13:04:30 -05:00
parent 1728f93d17
commit 619ff20a87
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 60 additions and 0 deletions

57
60.md Normal file
View File

@ -0,0 +1,57 @@
NIP-60
======
Record Events
-------------
`draft` `optional`
This NIP defines a way for users to keep editable records about other people and events.
## Pubkey Record
A pubkey record is a kind 30082 event where the `d` tag points to the pubkey of another user.
```js
{
"kind": 30382,
"tags": [
["d", "<pubkey>"],
["n", "colleague"],
["summary", "This is my boss"],
// other tags
],
// other fields
}
```
Any tags can be used. Specific tag uses may be formalized in other NIPs.
The `content` field may be an empty string, or a NIP-44 encrypted tag list of private tags.
## Event Record
An event record is a kind 30083 event where the `d` tag points to the id of another event.
```js
{
"kind": 30383,
"tags": [
["d", "<event-id>"],
["k", "1984"],
["p", "<event-pubkey>"],
["n", "open"],
// other tags
],
// other fields
}
```
This event MUST include the following tags:
- `k` - the kind of the referenced event.
- `p` - the pubkey of the referenced event (for outbox support).
Any other tags can also be used. Specific tag uses may be formalized in other NIPs.
The `content` field may be an empty string, or a NIP-44 encrypted tag list of private tags.

View File

@ -73,6 +73,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
- [NIP-57: Lightning Zaps](57.md)
- [NIP-58: Badges](58.md)
- [NIP-59: Gift Wrap](59.md)
- [NIP-60: Record Events](60.md)
- [NIP-65: Relay List Metadata](65.md)
- [NIP-71: Video Events](71.md)
- [NIP-72: Moderated Communities](72.md)
@ -177,6 +178,8 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
| `30078` | Application-specific Data | [78](78.md) |
| `30311` | Live Event | [53](53.md) |
| `30315` | User Statuses | [38](38.md) |
| `30382` | Pubkey Record | [60](60.md) |
| `30383` | Event Record | [60](60.md) |
| `30402` | Classified Listing | [99](99.md) |
| `30403` | Draft Classified Listing | [99](99.md) |
| `30617` | Repository announcements | [34](34.md) |