Commit 986000b
committed
fix: surface locked Trezor as DeviceBusy via trezor-connect-rs 0.3.4
Bump trezor-connect-rs to 0.3.4 and map the new typed ThpError::DeviceLocked
to TrezorError::DeviceBusy, so a locked Trezor during the THP handshake is
surfaced as the typed back-off signal instead of a generic ConnectionError.
Mobile clients can prompt the user to unlock rather than reconnecting in a loop.
0.3.4 also classifies DeviceLocked as non-retryable upstream: it no longer
churns the transport (close/reopen loop) on a locked device and instead makes a
single try_to_unlock handshake attempt so the device prompts for unlock.
Regenerates the iOS/Android/Python bindings via ./build.sh all (compiled
artifacts only; the UniFFI interface is unchanged since DeviceBusy already
existed).1 parent cfab564 commit 986000b
14 files changed
Lines changed: 40 additions & 18 deletions
File tree
- bindings
- android/lib/src/main/jniLibs
- arm64-v8a
- armeabi-v7a
- x86_64
- x86
- ios
- BitkitCore.xcframework
- ios-arm64-simulator
- ios-arm64
- python/bitkitcore
- src/modules/trezor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments