-
Notifications
You must be signed in to change notification settings - Fork 117
Add rss::payment Metadata #734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
What prevents an app from making up stuff at the url they include in the payment? |
@johnspurlock - nothing prevents this - apps will have to be trusted based on reputation - in my view that's another reason why having app-hosted urls makes sense |
|
May want to review the blip10 fields and add important missing analogs to your example, for example the app_name, app_version |
@johnspurlock added (9074709) - I've also updated our service to include the |
Thanks, can you add it to your example above? |
done! |
|
|
||
| ### Spec: | ||
|
|
||
| The `rss::payment` metadata spec uses a prefix in the payment description field, combined with http headers in a linked url, to deliver full payment metadata to services that care about it, whilst giving receiving users on any wallet an easily readable description for the payment: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
payment description field
should this be the LNURL comment field?
Afaik LNURL does not allow to set a "description" field and comments might not be passed to the bolt11 description.
| ### Implementation: | ||
|
|
||
| - **for apps:** | ||
| - add `rss::payment::{action} {url} {truncated message}` to the BOLT11 description field |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - add `rss::payment::{action} {url} {truncated message}` to the BOLT11 description field | |
| - pass `rss::payment::{action} {url} {truncated message}` to the LNURL comment field |
|
@MerryOscar the truncated message in the invoice comment is coming through as the string ex: |
RSS Payment Metadata
Originally the
<podcast:value>spec used keysend to facilitate payments. However there is now consensus within the Podcasting 2.0 community that keysend is not a long-term solution because many of the most popular Lightning Wallets such as Strike, CashApp, Primal, Wallet of Satoshi do not support it.The Lightning Address has also become the de-facto standard for sharing payment information in an easy way.
"Like an email address, but for money" - is an easy to understand concept for anyone even if they are new to Bitcoin, and asking someone to share their Lightning Address is simple.
Because of this the Podcasting 2.0 spec has been updated to use
type="lnaddress"- allowing podcasters to simply add one or more Lightning Address into their RSS feed to instruct apps where to send payments:The final piece to the puzzle is how to share payment metadata such as the show / episode info, sender info, and message, as Lightning Address payments have a maximum description size of around 200 characters.
This document outlines a simple spec for sharing RSS payment metadata that will not require any changes from wallets.
Goals:
Spec:
The
rss::paymentmetadata spec uses a prefix in the payment description field, combined with http headers in a linked url, to deliver full payment metadata to services that care about it, whilst giving receiving users on any wallet an easily readable description for the payment:rss::payment::{action} {url} {truncated message}rss::payment::boost https://fountain.fm/show/2JCkApiUwyBj2eOG7JJI?payment=DBBhBwUise1bcfoHRCC3 Great episode!As well as displaying the episode content, the url (https://fountain.fm/show/2JCkApiUwyBj2eOG7JJI?payment=DBBhBwUise1bcfoHRCC3) will also return an
x-rss-paymenthttp header, that contains the full structured metadata for the payment as a URI encoded JSON string:Implementation:
rss::payment::{action} {url} {truncated message}to the BOLT11 description fieldx-rss-paymentresponse header to the urlrss::paymentand contain a urlx-rss-paymentresponse header