NIP-101g: Golf Events#2272
Draft
DocNR wants to merge 1 commit intonostr-protocol:masterfrom
Draft
Conversation
Draft NIP defining event kinds for golf scoring on Nostr: - kind 33501: Golf Course (addressable, course metadata) - kind 1501: Round Initiation (immutable, embedded course snapshot) - kind 31501: Live Scorecard (replaceable, UX layer) - kind 1502: Final Round Record (immutable, permanent scores) Reference implementation: Gambit Golf (iOS) Relay: wss://relay.gambit.golf
Member
|
Haven't read yet, but this is nice. |
|
|
||
| ```jsonc | ||
| { | ||
| "course_snapshot": { |
Collaborator
There was a problem hiding this comment.
couldn't this json be just tags?
Author
There was a problem hiding this comment.
The 33501 course event is mutable — courses get updated, holes change, ratings get revised. But a completed round needs to permanently reflect the exact conditions it was played under. Embedding the snapshot in content keeps the round self-contained and independent of the current state of the referenced 33501.
The plan is to eventually canonicalize and hash the content JSON so verifiers can confirm the snapshot matches — which I'm already doing in the app. Open to a better pattern if you have one in mind!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
NIP-101g defines event kinds for golf scoring on Nostr:
hole_teetags), tee ratings, coordinates (hole_geo), and course imageryDesign highlights
ptags in the 1501; each publishes their own 31501/1502. Roster validation via p-tag checkg(geohash) tags enable relay-indexed proximity queries. Multiple publishers can create 33501s for the same physical course#e,#d,#a,#g). Domain-specific tags (hole_tee,score, etc.) are parsed client-sideReference implementation
wss://relay.gambit.golf— stores and serves all kindsRelated
🏌️ Built with Claude Code