Why Nostr? What is Njump?
2023-03-08 20:14:22

anarkio on Nostr: Had an idea about Paywall Posts when I was thinking about the marketplace bounty ...

Had an idea about Paywall Posts when I was thinking about the marketplace bounty (canceled my attempt as LNBits is already working on it: https://github.com/lnbits/nostrmarket).

Paywall Posts would be a regular text post with an extra attribute "paywall": "https://example.com/ebook.pdf"; and the price in sats, e.g. "price": 1000. As the relay is serving posts, it checks if the post contains a "paywall" attribute and only displays this attribute's contents if the requesting pubkey has zapped this post with the specified amount.

In pseudocode:

if(post['paywall']) {
if(check_for_zap(post['id'],post['price'],requesting_pubkey)) {
return post;
} else {
post['paywall'] = 'hidden';
return post;
}
}

Paywall Posts could be used for images, articles, music, ebooks or Patreon-style content.

The relay would have access to all Paywall content (as the paywall attribute is saved in plaintext) but it would only serve this content to authorized pubkeys. Users can choose to host their own relay to have full control over their content.

If anyone is interested in working on this idea, please feel free to use it. I doubt I will be able to work on this personally.

#nostr
Author Public Key
npub104d04f70swk7463r540ymqw83z85l00s6ljh7hgs2hedps0sp79qp5cgdw