Skip to content

HRN: Allow to set payer_note and quantity on ChannelManager::pay_for_offer_from_human_readable_name #3780

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

Open
tnull opened this issue May 15, 2025 · 3 comments
Labels
good first issue Good for newcomers

Comments

@tnull
Copy link
Contributor

tnull commented May 15, 2025

Currently, ChannelManager::pay_for_offer_from_human_readable_name only allows setting the amount_msat and max_total_routing_fee_msat parameters. It should also support setting all the other parameters of pay_for_offer, i.e.,, quantity, payer_note in particular.

@tnull tnull changed the title HRN: Allow to set additional params on ChannelManager::pay_for_offer_from_human_readable_name HRN: Allow to set payer_note and quantity on ChannelManager::pay_for_offer_from_human_readable_name May 15, 2025
@tnull tnull added the good first issue Good for newcomers label May 15, 2025
@TheBlueMatt
Copy link
Collaborator

I'm not sure I understand the desire to set quantity? That is really just a concept for weird too-tightly-integrated webstores that want to have a static offer for buying a widget, and will accept orders of multiple widgets. I guess in theory someone could let you buy widgets by paying to widget@storename, but I'm not entirely convinced that's all that likely?

The payer_note is a bit more understandable, though I still wish we wouldn't have a payer_note at all for privacy reasons (sadly people would complain about the UX...)

@tnull
Copy link
Contributor Author

tnull commented May 15, 2025

I'm not sure I understand the desire to set quantity? That is really just a concept for weird too-tightly-integrated webstores that want to have a static offer for buying a widget, and will accept orders of multiple widgets. I guess in theory someone could let you buy widgets by paying to widget@storename, but I'm not entirely convinced that's all that likely?

It's a spec bug feature, so IMO we should expose it to a) keep the APIs in sync and b) as there will be a user that requests it at some point, so might as well expose it now while we're at it.

The payer_note is a bit more understandable, though I still wish we wouldn't have a payer_note at all for privacy reasons (sadly people would complain about the UX...)

Mhh, well, they don't need to use it to re-identify themselves, no? Any case, it would be handy to have.

@TheBlueMatt
Copy link
Collaborator

I guess I see BOLT 12 offers within a BIP 353 TXT record as a different Thing from normal BOLT 12 offers. They're not allowed to have a fixed amount and ISTM as such they shouldn't really be allowed to require a quantity either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants