Skip to content

feat(zaps): request description-hash invoices - #1

Open
sotach1 wants to merge 1 commit into
mainfrom
feat/zap-description-hash-quotes
Open

feat(zaps): request description-hash invoices#1
sotach1 wants to merge 1 commit into
mainfrom
feat/zap-description-hash-quotes

Conversation

@sotach1

@sotach1 sotach1 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • request a BOLT11 description hash from the recipient's Cashu mint for NIP-57 zap quotes
  • leave ordinary LNURL-pay mint quotes unchanged
  • continue validating that the returned invoice commits to the exact signed zap request

This uses the per-quote description_hash: true extension implemented by cashubtc/nutshell#1105. A mint that ignores or does not support the option still fails the existing invoice commitment validation, so lnuts will not return an invalid zap invoice.

Testing

  • npm test: 21 passed
  • live so@nuts.cash NIP-57 callback returned a 42-sat invoice whose description hash matched the exact signed kind-9734 JSON

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant