feat(clear_signing): add uint216 support
What changed, and why it matters
This commit adds support for a new Ethereum data type, uint216, to Trezor's clear signing feature. It is a small, additive feature change with no obvious security problem. There is no indication in the commit that this fixes a vulnerability or is security-relevant.
No security action required. Treat as routine feature addition. If reviewing for completeness, verify that make_uint_parser correctly handles 216-bit values and that downstream UI/display logic already supports or is updated for this new type.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change extends the EthereumABIType enum in the protobuf definitions and adds a corresponding parser branch in core/src/apps/ethereum/clear_signing.py. It mirrors existing uint parser patterns (e.g., uint248, uint160) by calling make_uint_parser(216). No bounds checks, validation logic, or security-critical behavior is modified beyond adding the new type mapping.
Changed components
common/protob/messages-definitions.protocore/src/apps/ethereum/clear_signing.pyInspect captured patch +3 / −0
### common/protob/messages-definitions.proto
@@ -79,6 +79,7 @@ enum EthereumABIType {
ABI_UINT256 = 1;
ABI_UINT248 = 2;
+ ABI_UINT216 = 50;
ABI_UINT160 = 3;
ABI_UINT128 = 4;
ABI_UINT120 = 5;
### core/src/apps/ethereum/clear_signing.py
@@ -255,6 +255,8 @@ def _get_parser(t: int, is_dynamic: bool) -> Parser:
return parse_uint256
elif t == T.ABI_UINT248:
return make_uint_parser(248)
+ elif t == T.ABI_UINT216:
+ return make_uint_parser(216)
elif t == T.ABI_UINT160:
return make_uint_parser(160)
elif t == T.ABI_UINT128:Why this scored 20/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.