Skip to content

NIP-108 Lightning Gated Content#827

Closed
CoachChuckFF wants to merge 6 commits intonostr-protocol:masterfrom
fanfares:NIP-108_lightning_gated_content
Closed

NIP-108 Lightning Gated Content#827
CoachChuckFF wants to merge 6 commits intonostr-protocol:masterfrom
fanfares:NIP-108_lightning_gated_content

Conversation

@CoachChuckFF
Copy link

@CoachChuckFF CoachChuckFF commented Oct 17, 2023

This PR outlines a perspective NIP-108 for lightning-gated content.

A sample client can be found at Nostr Playground

An open-source server and client implementation can be found in the Nostr Playground Repo

Brought to you by the Excalibur Team.

@Egge21M
Copy link
Contributor

Egge21M commented Oct 19, 2023

I very much like this.
This solves the same problem as #542

Both approaches have their pro and cons and come with some overhead. However I want to point out that Zap Gates are easily extensible for more complex setups like fundraisers, subscriptions etc.

Copy link
Collaborator

@AsaiToshiya AsaiToshiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry if I'm wrong about NIP-04.

CoachChuckFF and others added 4 commits October 19, 2023 09:31
Fixed mismatched kinds in documentation

Co-authored-by: Asai Toshiya <to.asai.60@gmail.com>
NIP-04 takes the user's sk and the gate note creators pk

Co-authored-by: Asai Toshiya <to.asai.60@gmail.com>
NIP-104 uses the user's sk and the gate note creator's pk

Co-authored-by: Asai Toshiya <to.asai.60@gmail.com>
NIP-04 takes the users sk and the gated note creator's pk

Co-authored-by: Asai Toshiya <to.asai.60@gmail.com>
@CoachChuckFF
Copy link
Author

I very much like this. This solves the same problem as #542

Both approaches have their pro and cons and come with some overhead. However I want to point out that Zap Gates are easily extensible for more complex setups like fundraisers, subscriptions etc.

I just took a look at it! Great spec! And you're right, Zap Gates are more extensible, and probably more likely to be adopted.

I'd say the main benefit here is simplicity and that you only have to rely on an outside server twice. Once when creating the note and once when purchasing. Once you have the unlock key, it's yours forever since it all stays within the Nostr ecosystem. Granted, this is currently only good for text and small embedded images/files. However, it's feasible that Nostr will implement systems for larger embedded files in the future.

I'm a bit of a digital preservationist, maybe there is a way to preserve purchases within Zap Gates?

Copy link
Author

@CoachChuckFF CoachChuckFF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed g tag to e tag

@arkin0x
Copy link
Contributor

arkin0x commented Dec 11, 2025

@staab this PR can be closed. Fanfares isn't using it nor advocating for it anymore.

@staab staab closed this Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants