From 8f66e49db88bf5cbae339e5f8c1ab255a5e7f957 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 11 Jan 2024 09:54:44 -0600 Subject: [PATCH] docs: improve explanation of Ditto events --- docs/events.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/events.md b/docs/events.md index 9f8e30a..e44be09 100644 --- a/docs/events.md +++ b/docs/events.md @@ -1,8 +1,10 @@ # Ditto custom events -## Users +Instead of using database tables, the Ditto server publishes Nostr events that describe its state. It then reads these events using Nostr filters. -Ditto user events describe a pubkey's relationship with the Ditto server. They are parameterized replaceable events of kind `30361` where the `d` tag is a pubkey. These events are published by Ditto's internal admin keypair. +## User Event (kind 30361) + +The Ditto server publishes kind `30361` events to represent users. These events are parameterized replaceable events of kind `30361` where the `d` tag is a pubkey. These events are published by Ditto's internal admin keypair. User events have the following tags: