Skip to content
LogoLogo
ZIP: SEZS-0004
Title: Metadata (NIP-52)
Owners: SEZS contributors <[email protected]>
Status: Draft
Category: Contract / Interface
Created: 2026-11-24
Last-Updated: 2026-11-25
License: Apache-2.0

Conformance keywords follow BCP 14 (RFC 2119, RFC 8174), as adopted with the ZIP document conventions in SEZS-0000.

Definitions

  • NIP-52 body. The on-chain session definition stored by SetNip52. Field names follow the calendar event shape in Nostr NIP-52; storage is the session contract, not a Nostr relay, unless an egress is separately configured.

Abstract

Session metadata that the public site displays — title, kind, times, place, content — is written to cw-event-manifold in a body shaped after Nostr NIP-52 (Calendar Events). On-chain fields are authoritative. An optional metadata_uri (and content hash) MAY point off-chain without changing the on-chain shape. This document specifies the allowed kinds and the authority rule. Lineup presentation is a front-end concern (docs/specs/LINEUP-LANES.md) and is not restated here. Session coordinator authority for SetNip52 is specified in SEZS-0003.

Motivation

Guests and integrators need a deterministic session definition that does not depend on a particular front-end build. Using the NIP-52 shape lets the same body be egressed to Nostr later without a second schema, while the contract remains the source of truth if every relay is offline.

Privacy Implications

On-chain metadata is public. It MUST NOT include ticket secrets, email addresses, or registration keys. Off-chain metadata pointed to by metadata_uri is public if the URI is. A content hash, when present, lets clients detect substitution; it does not hide the document.

Requirements

  • On-chain NIP-52 fields MUST be authoritative over any off-chain copy.
  • SetNip52 MUST accept only the kinds listed below.
  • Kind 31925 (RSVP) MUST NOT be used as the session's kind and MUST NOT be treated as consume or attendance.

Specification

Kinds

NIP-52 defines calendar event kinds 31922 (date-based), 31923 (time-based), 31924 (calendar), and 31925 (RSVP). SEZS stores a NIP-52-shaped body on the session contract with this mapping:

KindNameMeaning
31922KIND_DATE_BASEDDate-based session
31923KIND_TIME_BASEDTime-based session (default)
31924KIND_CALENDARCalendar
31925KIND_RSVPRSVP commitment only; never consume or attendance

Instantiate and SetNip52 MUST accept 31922, 31923, or 31924, and MUST reject other values with invalid nip-52 kind. Title is the session name.

Off-chain pointer

SetMetadata {'{'} uri, content_hash {'}'} MAY be used to point at a larger document. The URI does not replace on-chain fields. If content_hash is set, clients SHOULD reject a fetched document whose hash does not match.

Egress

Hash-market documents a calendar_nostr capability (NIP-52 egress) as an optional feature of that sidecar. Whether a given SEZS deployment enables egress is an operational choice and is not required by this specification. When egress is productised, the published Nostr event MUST follow NIP-52.

Rationale

Storing a NIP-52-shaped body on the contract, rather than only on a relay, keeps the session definition available from an LCD or indexer query (SEZS-0011) even if every relay is offline.

Reference Implementation

Open Issues

  • The exact field-by-field mapping from Nip52Body to a published Nostr event is not frozen in this document; it MUST be added here when egress is productised.
  • Hash-market NIP-52 egress is optional and not automatically part of a SEZS deployment.