What is Nostr?
wakoinc / Blake
npub1ktw…mrvj
2023-05-03 12:59:34

wakoinc on Nostr: Here is an rust Nostr Paywall example project. It responds with 402 Payment Required, ...

Here is an rust Nostr Paywall example project. It responds with 402 Payment Required, unless your NIP-98 HTTP Auth event’s pubkey has been granted access.

https://github.com/blakejakopovic/nostr_paywall_example

It’s a separate project, however it can work together with the lightning payment webhook server I shared yesterday. Payment webhook events can update the DB, and then the paywall can succeed, and provide access for that pubkey for that content.

https://github.com/blakejakopovic/lightning_rs_webhook
Author Public Key
npub1ktw5qzt7f5ztrft0kwm9lsw34tef9xknplvy936ddzuepp6yf9dsjrmrvj