NIP-39 Identity, NIP-86 Relay Administration, and Two-Way Relay Attestation Across the Nostr Suite
NIP-39 Identity, NIP-86 Relay Administration, and Two-Way Relay Attestation Across the Nostr Suite
Over the past week, development across the Nostr and Sovereign Wellbeing stack focused on three core themes: giving relay operators sovereign browser-based management tools, migrating identity protocols off overloaded kind:0 metadata onto dedicated NIP-39 kind:10011 and NIP-58 kind:10008 records, and introducing cryptographic two-way verification between Nostr relays and their operators.
1. NIP-86 Relay Administration & Micro-Relay Hardening
All six Wellbeing Go micro-relays (cellibacy-relay, holyfit-relay, nunlock-relay, saintstream-relay, sistercharge-relay, and thehabit-relay) now implement the NIP-86 Relay Management API, enabling live administrative control without SSH restarts or manual config edits.
To pair with those relays, the new Nostr Relay Manager web console provides a browser-native administration interface powered by NIP-98 (kind:27235) signed JSON-RPC over NIP-07 extensions:
- Live Stored Event Explorer: Inspect stored events in real time with rendered cards, raw JSON inspection, and one-click moderation actions attributed to the moderator pubkey.
- Access & Network Firewalls: Ban or allow pubkeys, ban specific events, block or unblock IP addresses, and dynamically toggle allowed event kinds.
- Live NIP-11 Overrides: Update relay name, description, and icon directly through
changerelayname,changerelaydescription, andchangerelayicon. - Badge-Gated Groups:
holyfit-relayalso adds NIP-29 group support gated by NIP-58 badges with NIP-70 protected-event enforcement.
2. Two-Way Relay Operator Attestation (SNIP-03)
Anyone can place an arbitrary pubkey inside a relay’s NIP-11 information document. To make operator identity cryptographically verifiable, SNIP-03 (Section 4) now formalizes a two-way handshake between a relay and its operator’s PGP root identity:
- Relay → Operator (NIP-11): The relay’s NIP-11 JSON advertises
"pubkey": "<operator_hex_pubkey>"(with standard NIP-11 CORS headers enabled for browser verification). - Operator → Relay (
kind:34301): The operator lists operated relay WebSocket URLs asrtags on theirkind:34301proof event alongside a matchingVerifying that I operate the following Nostr relays:section inside the OpenPGP-clearsigned payload.
Both directions must agree before a client marks a relay as verified. Unilateral NIP-11 pubkey values fail attestation, and unconfirmed r-tag claims in a user’s proof are flagged and rejected as impersonation.
In pgpstr, the web tool now includes:
- Direct verification for both Nostr public keys (
npub/ hex) and relay URLs (wss:///ws://). - An Existing Proof Status card showing live signature, Nostr text,
kind:10011link, and relay attestation checks upon connecting. - An interactive Relay Ownership builder with live NIP-11 pubkey matching and automatic
nostr-proof.txttemplate generation.
3. Moving External Identities Out of kind:0 (NIP-39 kind:10011)
Across Nostr, external platform claims (github, twitter, pgp, minecraft, etc.) have moved out of kind:0 profile metadata into dedicated replaceable kind:10011 external identity lists. Both SNIP-01 and SNIP-03 and their reference clients now follow that model:
pgpstr(SNIP-03): Queries NIP-65 (kind:10002)readandwriterelays for the latestkind:10011right before publishing, merging updatedpgp:<fingerprint>tags non-destructively so existing external identity tags remain intact.bukkitstr(SNIP-01):- Updated
01.mdandBukkitstrPluginto look up Minecraft usernames exclusively from NIP-39kind:10011events (["i", "minecraft", "<username>"]) across NIP-65 relays, plusnpub1decoding support in/nostrauth. - Updated the embedded Go dev relay to accept
kind:10011and fixed WebSocket framing inwritePump()so queued protocol frames (EVENTandEOSE) are each delivered in their own WebSocket message. - Updated
web-authto verify whether a player’skind:10011already links their Minecraft username and append it non-destructively if missing before signing the ephemeralkind:21337challenge.
- Updated
4. Nostr Genesis (ocweb) & NIP-58 kind:10008 Profile Badges
While SNIP-04 (oc Origin Claim) remains anchored on kind:0 because it points internally to a Nostr event rather than an external identity, NIP-58 Profile Badges have transitioned in the Nostr specification from addressable kind:30008 (d=profile_badges) to replaceable kind:10008.
ocweb has been updated with:
- NIP-58
kind:10008Migration: Readskind:10008first with an automatic fallback to legacykind:30008(d=profile_badges), and writes standardkind:10008events when saving badge layouts or claiming awards. - Safer
kind:0Merges & Socket Hardening: Queries NIP-65readandwriterelays before updatingoctags, pinsnostr-tools@2.25.2, enforces WebSocket handshake watchdogs andbeforeunloadcleanup, and escapes rendered event content to prevent XSS.
5. Android & Documentation Housekeeping
- Cleaned up obsolete
blossom_serversconfiguration across all six Wellbeing Android repositories (Cellibacy,Holy Fit,Nunlock,Saint Stream,Sister Charge, andThe Habit). - Updated SNIP-10 (
v3.0.1) documentation to clarify immediate legacy kind EOL and current Blossom tooling references.
Write a comment