nip16: clarify about the signers of replaceable events

A newer replaceable event must be signed by the same key.
This commit is contained in:
alex 2022-11-10 23:06:11 +01:00 committed by fiatjaf
parent 27683d3441
commit f09362695d

2
16.md
View File

@ -11,7 +11,7 @@ Relays may decide to allow replaceable and/or ephemeral events.
Replaceable Events Replaceable Events
------------------ ------------------
A *replaceable event* is defined as an event with a kind `10000 <= n < 20000`. A *replaceable event* is defined as an event with a kind `10000 <= n < 20000`.
Upon a replaceable event with a newer timestamp than the currently known latest replaceable event with the same kind being received, the old event SHOULD be discarded and replaced with the newer event. Upon a replaceable event with a newer timestamp than the currently known latest replaceable event with the same kind being received, and signed by the same key, the old event SHOULD be discarded and replaced with the newer event.
Ephemeral Events Ephemeral Events
---------------- ----------------