Why Nostr? What is Njump?
2023-05-30 11:07:41

Kieran on Nostr: Added support for L402 in snort, also added support on void.cat for L402. This means ...

Added support for L402 in snort, also added support on void.cat for L402.

This means you will get asked to make a payment directly on Snort to view content.

I'm using a slightly modified version of L402 spec in order to make it work nicer for web, since we can't actually see the response when using the URL directly in a <img> or <video> tag we need to make another request, so void.cat will now only respond with 402 status code WITHOUT the invoice, this is to prevent generating 2 invoices for every request, the second request is the same url but with the "Accept" set to "L402" and the method is "OPTIONS", this will return the WWW-Authenticate header which contains the macaroon and invoice, once paid we send the Authorization header as per L402.

That being said it should be compatible with regular L402 spec, i just didn't test it
Author Public Key
npub1v0lxxxxutpvrelsksy8cdhgfux9l6a42hsj2qzquu2zk7vc9qnkszrqj49