Expand description
Deleting what the local user sent to a Community, from its relays.
Every wrap on a plane is signed by the plane’s shared key, so a deletion by that key could
come from any member: CORD-01 §Deletions has relays refuse it and honour the wrap’s
p-tagged owner instead. Vector derives that p key from the author’s key and the message
(derive::wrap_owner_key), so every device of the author can delete any of their
messages. A remote-signer account can’t derive it, so its sending device keeps a random one.
Owners are kept in community_wrap_owners, plane keys in community_message_keys.
A delete sends the owner’s deletion and, best-effort, the plane key’s: a relay that only honours authors drops the wrap on that one, and a relay following the spec ignores it. A message sent before owners were kept has only its plane key, so those relays keep its wrap and the in-plane delete alone hides it.
Structs§
- Scrubbed
- What deleting one of my own events from relays reached.
Functions§
- in_
plane_ delete_ expiry - When the in-plane delete of
message_idmay leave relays, given what its scrub reached: once the wrap was deletedScrubbed::everywhere, 30 days on, or with the message when that comes sooner. Otherwise never, since it alone hides a wrap a relay still holds. - scrub_
own - Delete my own
message_idfrom relays, with its stored edits (they carry its text), by every key kept for their wraps: one deletion per wrap, so none ties wraps together for a relay.relaysis where its Community lives now: a relay move copies wraps over. An owner key is dropped once its deletion went out, a plane key once its deletion was sent.