Skip to content

feat: preferred mints#380

Closed
d4rp4t wants to merge 3 commits into
cashubtc:mainfrom
d4rp4t:feat/preferred-mints
Closed

feat: preferred mints#380
d4rp4t wants to merge 3 commits into
cashubtc:mainfrom
d4rp4t:feat/preferred-mints

Conversation

@d4rp4t

@d4rp4t d4rp4t commented May 26, 2026

Copy link
Copy Markdown
Contributor

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

@robwoodgate

Copy link
Copy Markdown
Contributor

I have cherry-picked the commits from this PR into #381, which also adds an "extra fee" field for non preferred mint payments.

@d4rp4t

d4rp4t commented May 28, 2026

Copy link
Copy Markdown
Contributor Author

replaced by #381

@d4rp4t d4rp4t closed this May 28, 2026
@github-project-automation github-project-automation Bot moved this from Backlog to Done in nuts May 28, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants