Skip to content

NUT-23: add per-quote description hashes - #417

Open
sotach1 wants to merge 1 commit into
cashubtc:mainfrom
sotach1:nut23-description-hash
Open

NUT-23: add per-quote description hashes#417
sotach1 wants to merge 1 commit into
cashubtc:mainfrom
sotach1:nut23-description-hash

Conversation

@sotach1

@sotach1 sotach1 commented Aug 4, 2026

Copy link
Copy Markdown

Summary

  • add an optional per-quote description_hash boolean to BOLT11 mint quote requests
  • define the exact h = SHA256(UTF8(description)) behavior
  • preserve the current plaintext d behavior when the option is omitted or false
  • advertise support independently as options.description_hash

Motivation

Some protocols provide the invoice description out of band and require the BOLT11 invoice to commit to its exact bytes. NIP-57 zap requests are one example. A mint-wide setting would regress ordinary Cashu deposit memos, so the choice needs to be made independently for each quote.

Reference implementation: cashubtc/nutshell#1105
Client integration: candypoets/lnuts#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant