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

Restrict BIP322 messages to printable ASCII

Public commit record

What the developer wrote

Authored by scgbckbone

45/100 · Thin
Restrict BIP322 messages to printable ASCII
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit tightens the rules for messages that COLDCARD will sign using the BIP-322 proof-of-reserves feature. Previously, non-ASCII characters were allowed with only a warning; now the message must be plain printable ASCII (with limited exceptions), must be 2-330 characters long, and cannot have tricky spacing. This reduces the chance that a crafted message could mislead the user into signing something they did not intend.

Recommended action

No immediate action required beyond normal review and merge. Users relying on BIP-322 proof-of-reserves with non-ASCII messages will need to switch to printable ASCII messages.

Security signals we found

01

Input validation hardened: non-printable and non-ASCII bytes now rejected instead of warned

02

Reuses existing message-sanitization routine, reducing code duplication

03

Removes user-facing warning path that could be abused for display-confusion attacks

04

Adds test coverage for invalid UTF-8, control characters, length, and minimum-size cases

Risk score

Why this scored 48/100

Our methodology →
Potential impact 12/30
Exploitability 10/25
Stealth signal 8/15
Affected reach 7/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.