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

feat(python/thp): support send-side THP ACK piggy-backing

Public commit record

What the developer wrote

Authored by Roman Zeyde

77/100 · Adequate
feat(python/thp): support send-side THP ACK piggy-backing

`trezorlib` now detects THP 2.1 devices and will flip the ACK bit on THP messages.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body
The short version

What changed, and why it matters

This commit updates the Trezor Python client library (trezorlib) to support a new efficiency feature in the Trezor Host Protocol (THP) version 2.1. It allows the host computer to 'piggyback' acknowledgment (ACK) flags onto normal outgoing messages rather than sending separate ACK packets. The change is a feature addition, not a fix for a vulnerability, and the code comments explicitly describe backward-compatible behavior for older firmware.

Recommended action

No security action required. Treat as a normal feature update. Reviewers may optionally verify that version-gating logic correctly prevents misinterpretation by older firmware and that the ACK bit does not interfere with the handshake state machine on THP 2.1 devices.

Security signals we found

01

Protocol feature negotiation based on device-reported version numbers

02

ACK bit set on all sent messages, including HANDSHAKE_INIT_REQ, which older firmware is documented to ignore

03

No input parsing changes, no memory-unsafe operations, no cryptographic key handling changes

04

Rename of helper function from add_ack_bit_to_ctrl_byte to set_ack_bit (cosmetic/API cleanup)

Risk score

Why this scored 19/100

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