nips/24.md

42 lines
1.4 KiB
Markdown
Raw Normal View History

2023-09-24 15:48:55 -04:00
NIP-24
======
Extra metadata fields and tags
------------------------------
`draft` `optional` `author:fiatjaf`
This NIP defines extra optional fields added to events.
kind 0
======
These are extra fields not specified in NIP-01 that may be present in the stringified JSON of metadata events:
- `display_name`: an alternative, bigger name with richer characters than `name`. `name` should always be set regardless of the presence of `display_name` in the metadata.
2023-09-24 15:48:55 -04:00
- `website`: a web URL related in any way to the event author.
2023-09-24 18:48:05 -04:00
- `banner`: an URL to a wide (~1024x768) picture to be optionally displayed in the background of a profile screen.
### Deprecated fields
These are fields that should be ignored or removed when found in the wild:
- `displayName`: use `display_name` instead.
- `username`: use `name` instead.
2023-09-24 15:48:55 -04:00
kind 3
======
These are extra fields not specified in NIP-02 that may be present in the stringified JSON of contacts events:
### Deprecated fields
- `{<relay-url>: {"read": <true|false>, "write": <true|false>}, ...}`: an object of relays used by a user to read/write. [NIP-65](65.md) should be used instead.
2023-09-24 15:48:55 -04:00
tags
====
2023-11-15 11:34:21 -05:00
These tags may be present in multiple event kinds. Whenever a different meaning is not specified by some more specific NIP (currently only "r" tags on kind 10002 events have a different meaning), they have the following meaning:
2023-09-24 15:48:55 -04:00
- `r`: a web URL the event is referring to in some way