AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Moderate 59 Bitcoin

check a paynym retrieved by payment code matches the requested code

Public commit record

What the developer wrote

Authored by Craig Raw

50/100 · Thin
check a paynym retrieved by payment code matches the requested code
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit adds a safety check in Sparrow Wallet's PayNym feature. PayNyms are human-readable names linked to Bitcoin payment codes. Previously, when a user looked up a PayNym by its payment code, the wallet would trust whatever payment code the PayNym server returned. The fix verifies that the returned payment code actually matches the one requested, preventing a malicious or compromised server from silently substituting a different payment code. The UI now also displays the wallet's own payment code rather than the server-returned one.

Recommended action

Users should upgrade to a Sparrow Wallet release containing this commit. Developers should review whether other server-returned fields (nymName, nymID, following lists) are also validated against the requested identifier, and consider adding tests for payment code mismatch scenarios.

Security signals we found

01

Server response validation added: requested vs returned payment code notification address comparison

02

UI now uses locally derived payment code instead of server-returned payment code

03

Throws IllegalStateException on mismatch, indicating a security-relevant invariant

04

Trust boundary between wallet client and PayNym server is tightened

Risk score

Why this scored 59/100

Our methodology →
Potential impact 18/30
Exploitability 12/25
Stealth signal 10/15
Affected reach 8/15
Confidence 7/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.