Page MenuHomePhabricator

[electrum] trezor: allow PIN of length 50 for T1 firmware >=1.10.0 and other devices firmware >=2.4.0
ClosedPublic

Authored by PiRK on Sat, Jan 18, 09:17.

Details

Summary
Test Plan

With a Trezor 1 device protected with a pin longer than 9 digits, check that prior to this diff you cannot pair with the device and after this diff you can

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Sat, Jan 18, 09:17

Note that I had to first revert D17457 to test this, because D17457 introduces a new bug preventing pairing with a Trezor 1

electrum/electrumabc_plugins/trezor/clientbase.py
337 ↗(On Diff #52300)

It is probably pointless to test this for other Trezor models, I don't think Trezor T, Safe3 and Safe 5 will ever call this method. Everyting happens on the device, the device does not need to ask for the software to give it input to type the PIN except for Trezor 1.

But it doesn't hurt either to test this 2.4.0 version, so lets keep it just to be on the safe side (mayber I'm missing some use case where the device really needs input from the outside world ?)

This revision is now accepted and ready to land.Sat, Jan 18, 21:16