I figured there's a way to send encrypted content and decrypt it by paying an invoice?
For example, by encrypting the content with the preimage of the payment hash.
It is a secret generated when the invoice was created. Its revealed to the invoice payer when the invoice is paid.
I'm no lightning expert, but it sounds like it could be used by the payee as an encryption key to encrypt the newsletter content when the LN invoice is generated, and by the payer to decrypt it after payment is confirmed.
reply
That’s a clever way to paywall. Somehow I doubt they’re doing anything that interesting.
If you have some means of IDing users you can effectively achieve the same thing by just maintaining state on the backend. If the invoice is paid they show/send it to that email address. If not nope.
reply