Kind 13 (NIP-59 seal) falls through every event classification #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Observation
NostrEvent's classification helpers don't categorise kind 13:In
_handle_event, kind 13 hits theif not e.is_ephemeral_event: await create_event(e)branch and is stored. So it works correctly today— it's just stored as an "untyped" event. Per NIP-01 §kinds, kinds in
1000 > kindshould still be treated as regular by default, so storageis correct.
Why file this anyway
Per NIP-59, seals (kind 13) are encrypted inside gift wraps and
should not normally be published to relays. If a misbehaving client
publishes a bare seal, the relay accepts and stores it indefinitely.
Operators may want to:
Suggested approach
Either:
is_sealcheck in_handle_eventthat rejects bare seals witha NIP-20 NOTICE, controlled by a new spec flag (
rejectBareSeals).is_regular_eventto includekind in (4, 5, 13)for NIP-01default classification — purely cosmetic.
Low priority. The
is_sealhelper was already added in#PR-feat-nip17-gift-wrap-support so the lookup is cheap.
Out of scope
Deferred from the NIP-17 PR — not a functional bug for gift-wrap traffic.