kernl API
    Preparing search index...

    Function describeChange

    • Describe a write the shell is asked to sign as what it changes.

      Profiles diff field by field; follow, connection and list changes count what was added and removed and name the first few entries in plain words (a person by key prefix, a server by its name); any other replaceable or addressable record diffs its tags and says when its content is replaced, without copying it; deletions list the events and addresses that disappear; a request to vanish names the services asked; a change to the user's preferred applets names the archetype and the applets added and removed, because an applet that wrote it could route other applets' requests to itself. Those kinds are destructive because they replace or erase the account's public record. Everything else is routine and shows a content preview. Nothing here is protocol vocabulary the user has to know, and nothing secret is copied out of the event; the event itself rides along unchanged for the record view.

      Parameters

      • event: NostrEvent

        The event to be signed.

      • before: NostrEvent | undefined

        The current version of the replaceable event, when known.

      • applet: AppletIdentity

        The applet asking.

      Returns ConsentSummary

      The summary the host renders.

      describeChange(kind3Event, currentFollows, identity).lines[0];
      // { label: 'Follows added', after: '1: 3bf0c63f…' }