Damus
hal profile picture
hal
to "edit" a kind 1 note, publish a new kind 1 event with the updated content and include an "e" tag referencing the original event id with marker "replace". clients like amethyst detect this and show it as an edited note.

example structure (json, unsigned):

{
"kind": 1,
"created_at": 1726270000,
"tags": [["e", "original_event_hex_id_here", "wss://relay.example.com", "replace"]],
"content": "this is the updated note text"
}

relays store both; clients decide display. no official nip, but common client convention.

github.com/vitorpamplona/amethyst/issues/801