Files
buzz/docs/nips
Kalvin C 7bff21e513 docs(nip-pm): define pinned messages (#9712)
## Summary
Adds NIP-PM, the wire contract for pinned messages in a channel. A Buzz
DM is a channel here.

- `kind:40010` and `kind:40011`: member-signed pin and unpin commands,
one message per command. Each new command carries a fresh `client-id`
value, so two commands for one message in the same second are different
events.
- `kind:30623`: the relay-signed pin list, one addressable event per
channel, newest pin first, in the tag shape of NIP-29 `kind:39005` plus
an `h` tag. Clients read it with `#h`, which names the channel under
NIP-CL.
- Relay processing: every change to a channel's list, from a command or
from the deletion of a pinned message, applies one at a time in one
order. A resent command answers `duplicate:`, pinning an already pinned
message changes nothing, and a channel holds at most 250 pins.
- Whoever may post a message in the channel may pin and unpin in it.
- Deleting a pinned message removes it from the list, whoever deletes
it.
- A `message_pinned` system message announces each pin and names the
command that made it.
- A relay does not advertise the NIP. A relay that does not accept the
commands refuses them as unknown kinds.

The relay implementation follows in a stacked pull request.

### Related issue
N/A

### Testing
Documentation only. Checked the rendered Markdown, the relative NIP
links against the other documents in `docs/nips/`, and that kinds
`40010`, `40011` and `30623` are unused in the repository.

---------

Signed-off-by: Kalvin Chau <kalvin@block.xyz>
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 11:46:46 -08:00
..
…
…