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

nit: tx nVersion serialization is signed integer

Public commit record

What the developer wrote

Authored by scgbckbone

45/100 · Thin
nit: tx nVersion serialization is signed integer
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes a small data-formatting inconsistency in how the COLDCARD firmware reads and writes the transaction version number inside PSBT v2 files. The code now treats the version as a signed 32-bit integer, matching the Bitcoin protocol, instead of an unsigned 32-bit integer. The practical security impact is likely low because the value is still 4 bytes on the wire and the same bits are produced for all common positive version values. It mainly matters if someone deliberately uses a negative version number, which is unusual and would previously have been misinterpreted as a very large positive number.

Recommended action

Treat as a minor correctness fix. Review whether any downstream logic depends on txn_version being unsigned (e.g., comparisons or version-feature gating) and verify that the change does not alter behavior for valid version 1/2 transactions. No urgent action is required unless the firmware accepts PSBTs from untrusted sources with crafted negative version numbers.

Security signals we found

01

Data-type mismatch between protocol spec and implementation

02

PSBT v2 transaction version parsed as unsigned instead of signed integer

03

Potential misinterpretation of negative nVersion values

04

No explicit security claim or CVE in commit message

Risk score

Why this scored 29/100

Our methodology →
Potential impact 5/30
Exploitability 5/25
Stealth signal 5/15
Affected reach 5/15
Confidence 6/10
Evidence quality 3/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.