Skip to content

fix: set nonce correctly when encoding zswap state#895

Merged
gilescope merged 2 commits into
mainfrom
ozgb-fix-nonce-nullifier
Mar 11, 2026
Merged

fix: set nonce correctly when encoding zswap state#895
gilescope merged 2 commits into
mainfrom
ozgb-fix-nonce-nullifier

Conversation

@ozgb

@ozgb ozgb commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

Overview

CoinInfo includes a nonce field and CoinNullifier is derived as Hash<(CoinInfo, ZswapCoinSecretKey)>, so nullifier != nonce. The code appears to use the nullifier where it should use the nonce.

Reported by Mirco, confirmed as a bug by Thomas Kerber.

Ticket: https://shielded.atlassian.net/browse/PM-21923

🗹 TODO before merging

  • Ready

📌 Submission Checklist

  • Changes are backward-compatible (or flagged if breaking)
  • Pull request description explains why the change is needed
  • Self-reviewed the diff
  • I have included a change file, or skipped for this reason:
  • If the changes introduce a new feature, I have bumped the node minor version
  • Update documentation (if relevant)
  • Updated AGENTS.md if build commands, architecture, or workflows changed
  • No new todos introduced

🧪 Testing Evidence

Please describe any additional testing aside from CI:

  • Additional tests are provided (if possible)

🔱 Fork Strategy

  • Node Runtime Update
  • Node Client Update
  • Other:
  • N/A

Links

@ozgb ozgb requested a review from a team as a code owner March 10, 2026 10:56
@github-actions

Copy link
Copy Markdown
Contributor

kics-logo

KICS version: v2.1.19

Category Results
CRITICAL CRITICAL 0
HIGH HIGH 0
MEDIUM MEDIUM 47
LOW LOW 3
INFO INFO 59
TRACE TRACE 0
TOTAL TOTAL 109
Metric Values
Files scanned placeholder 26
Files parsed placeholder 26
Files failed to scan placeholder 0
Total executed queries placeholder 73
Queries failed to execute placeholder 0
Execution time placeholder 11

@gilescope gilescope added this pull request to the merge queue Mar 11, 2026
Merged via the queue into main with commit 31c36d2 Mar 11, 2026
96 of 100 checks passed
@gilescope gilescope deleted the ozgb-fix-nonce-nullifier branch March 11, 2026 08:14
@gilescope gilescope added this to the node-1.0.0 milestone Apr 10, 2026
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.

3 participants