Skip to content

refactor(sigall): recompute signing digests from package contents [backport v4-dev] - #951

Merged
robwoodgate merged 2 commits into
v4-devfrom
backport-947-to-v4-dev
Aug 11, 2026
Merged

refactor(sigall): recompute signing digests from package contents [backport v4-dev]#951
robwoodgate merged 2 commits into
v4-devfrom
backport-947-to-v4-dev

Conversation

@robwoodgate

Copy link
Copy Markdown
Collaborator

Description

Backport of #947 to v4-dev.

@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (v4-dev@4e5dd3d). Learn more about missing BASE report.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##             v4-dev     #951   +/-   ##
=========================================
  Coverage          ?   95.46%           
=========================================
  Files             ?       49           
  Lines             ?     5162           
  Branches          ?     1290           
=========================================
  Hits              ?     4928           
  Misses            ?      100           
  Partials          ?      134           
Flag Coverage Δ
integration 39.09% <5.88%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Nutshell 0.20.3 and mintd 0.17.3 / 0.17.3-rc.0. Nutshell releases
before 0.20.3 do not verify the SIG_ALL message format the wallet
now produces.
@robwoodgate
robwoodgate merged commit ab51cda into v4-dev Aug 11, 2026
18 checks passed
@robwoodgate
robwoodgate deleted the backport-947-to-v4-dev branch August 11, 2026 21:10
@github-project-automation github-project-automation Bot moved this from Backlog to Done in cashu-ts Aug 11, 2026
robwoodgate added a commit that referenced this pull request Aug 12, 2026
Mostly hardening fixes, a couple of minor breaking changes to note:

Experimental — SigAll (#951):
  
  1. SigAllDigests reshaped: { legacy, current } → { v0 }.
  2. SigAllSigningPackage.digests removed — digests are recomputed from package contents.
  3. deserializePackage(input, options?) → deserializePackage(input); the validateDigest option is gone, validation is now implicit.
  
  Stable, type-level (#958):
  
  4. NUT10Option.tags required → optional.
  5. RawNUT10Option.t required → optional. 
  
  Both only affect TypeScript consumers who read the field, who now see | undefined. Constructing gets easier, and it matches NUT-10 and NUT-18, which both call tags optional.
  
  Stable, behavioural (#932):
  
  6. New bolt11 quote-amount check that throws, at four call sites including the read paths checkMintQuoteBolt11 and
  checkMintQuoteBatchBolt11. Only affects non-compliant mints that return ln invoices that do not match the quote amounts, so should not break in practice.

Thanks to Project Loupe for suggesting some of the hardening fixes in this release
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.

1 participant