feat: preferred mints#380
Closed
d4rp4t wants to merge 3 commits into
Closed
Conversation
This was referenced May 26, 2026
4 tasks
Contributor
|
I have cherry-picked the commits from this PR into #381, which also adds an "extra fee" field for non preferred mint payments. |
Contributor
Author
|
replaced by #381 |
robwoodgate
added a commit
to d4rp4t/cashu-ts
that referenced
this pull request
May 28, 2026
Spec moved from cashubtc/nuts#380 to cashubtc/nuts#381, adding fee_reserve (fr) and supported_methods (sm) alongside the existing mint-strict flag. Adds an isMintListStrict resolver for the spec default-to-true semantic.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add ms (mint strict) field to NUT-18 Payment Requests
Adds a new optional ms boolean field to the Payment Request that controls whether the mint list m is treated as a strict requirement or a suggestion for the payer.
When ms is absent or true (default), the recipient MUST reject payments from mints not in the list. When ms is false, the mint list serves only as a hint to the payer.
This allows receivers to either enforce specific mints or merely express a preference while still accepting payments from any mint.
Implementations