Interesting. The code up somewhere?
Login to reply
Replies (2)
Hopefully this week. My first approach was a bit destructive, haha. I’m refactoring it now.
Works for event view and overlay. Not for DMs as yet. Needs edge case handling improvements.
This code works as an example 402 payment required server. I’ve refactored it a lot locally too - but should work fine.

GitHub
GitHub - blakejakopovic/nostr_paywall_example: This is an example Nostr rust project to enable '402 Payment Required' responses for requests to paid content.
This is an example Nostr rust project to enable '402 Payment Required' responses for requests to paid content. - blakejakopovic/nostr_paywall_example
I have something early you can look at. Lots of todos, a small bugs/issues.
Basic testing endpoint (doesn't validate actual BLA content, just that something exists)
curl -I -H "Authorization: Nostr BLA"
Endpoint code:
View quoted note →

GitHub
Early cut of Nostr HTTP Auth for Images · blakejakopovic/damus@e27162b
iOS nostr client. Contribute to blakejakopovic/damus development by creating an account on GitHub.
Endpoint code: 
Gist
Dummy Nostr HTTP AUTH endpoint for NIP-98
Dummy Nostr HTTP AUTH endpoint for NIP-98. GitHub Gist: instantly share code, notes, and snippets.
