Payment request consolidation (and extra fees for non-preferred mints) #381
No reviewers
Labels
No labels
breaking change
bug
documentation
enhancement
needs discussion
needs implementation
new nut
ready
wallet-only
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo-admin/nuts!381
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "robwoodgate/payment-request-consolidation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Consolidates and Supersedes: #355, #380
Summary
Consolidates the two open NUT-18 payment request proposals around mint preferences, strict mint lists, fee reserve signalling, and required mint payment methods.
This PR keeps the existing
mmint list as the single mint-list field, and adds small companion fields to clarify how that list should be interpreted.Changes
ms(mint_strict) to signal whether themmint list is strict or preferred from #380:true: receiver only accepts proofs from listed mintsfalse: listed mints are preferred, but other mints may be acceptedsm(supported_methods) to require that the mint used by the payer supports at least one listed payment method, e.g.bolt11,bolt12,onchainfrom #355fr(fee_reserve) to signal an additional amount the payer MUST include when paying from a non-preferred mint, to cover potential swap/melt feesRationale
There were overlapping proposals for preferred mints and strict mint lists. Instead of introducing a separate preferred mint list, this keeps the request format minimal:
mremains the mint listmsdefines whether that list is strict or advisoryfrgives wallets a way to compensate for extra fees when ignoring the preferencesmlets receivers express the mint capabilities required for the payment flowThis avoids two competing mint-list fields while covering the three desired behaviours.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.