Uh oh!
There was an error while loading. Please reload this page.
feat: add trezor receive - #693
Conversation
60e7c71 to
651c9ecCompareGreptile SummaryAdds Trezor receiving to the existing receive sheet, using watcher-provided addresses with an account-scan fallback and optional on-device verification.
Confidence Score: 5/5The PR appears safe to merge, with no concrete blocking or independently actionable non-blocking defects identified. The receive flow preserves explicit hardware-wallet identity from its primary entry point, obtains a next-unused address through watcher or account-scan state, and rejects device verification unless the returned address exactly matches the displayed destination.
|
| Filename | Overview |
|---|---|
| Bitkit/Managers/HwWalletManager.swift | Stores watcher-provided next-unused addresses, adds account-scan fallback, and verifies the displayed derivation directly on the Trezor. |
| Bitkit/Views/Wallets/Receive/ReceiveQr.swift | Adds the Trezor receive tab, hardware BIP21 rendering, address loading, and reconnect/passphrase-aware verification. |
| Bitkit/Views/Wallets/Receive/ReceiveEdit.swift | Adds an on-chain-only editing mode that preserves amount and message state without invoking Lightning or Paykit flows. |
| Bitkit/Views/Wallets/Receive/ReceiveSheet.swift | Carries hardware-wallet identity through receive navigation and presents pairing requests during reconnect. |
| Bitkit/Components/TabBar/TabBar.swift | Opens the receive sheet on the Trezor tab when invoked from a hardware-wallet route. |
| Bitkit.xcodeproj/project.xcodeproj | Updates Bitkit Core to the version providing the watcher receive-address payload. |
Sequence Diagram
sequenceDiagram
participant User
participant Receive as Receive Sheet
participant Manager as Hardware Wallet Manager
participant Watcher as Watch-only Watcher
participant Electrum
participant Trezor
User->>Receive: Open Trezor receive tab
Receive->>Manager: Request receive address
Manager->>Watcher: Read cached next-unused address
alt Watcher address available
Watcher-->>Manager: Address and derivation path
else Watcher address unavailable
Manager->>Electrum: Scan account addresses
Electrum-->>Manager: First unused external address
end
Manager-->>Receive: Address and derivation path
Receive-->>User: Display QR and details
opt Verify on device
User->>Receive: Verify address
Receive->>Manager: Verify displayed address
Manager->>Trezor: Derive and display exact path
Trezor-->>Manager: Device-derived address
Manager-->>Receive: Accept only exact match
end
Reviews (1): Last reviewed commit: "feat: add trezor receive" | Re-trigger Greptile
2c2869a to
28be38aCompare960c297 to
3231855Compare
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
fc89ca6 to
68e30b2Comparef22f583 to
f129450CompareTested on simulator and device (iPhone 13 + Trezor Safe 7). Generally all good. Able to present the receive address, verify the address on the device, etc. One observation (looks intentional in code, but may be misleading to the user): with 2+ paired hardware wallets (e.g. standard + passphrase), Home → Receive does not show the Trezor tab, so there is no hardware receive address from that entry point. Fine to defer to a follow-up PR — if that's the case, let's create a ticket for this. Steps to reproduce
Expected (or less misleading)Home → Receive either shows a Trezor tab (or a wallet picker) when more than one hardware wallet is paired, or makes it clear that hardware receive is only available from the specific wallet screen. WorkaroundOpen the specific hardware wallet screen first, then Receive. That path still shows the address. RecordingScreenRecording_09-01-2026.10-03-56_1.MP4 |
piotr-iohk
left a comment
There was a problem hiding this comment.
Approve. Single-wallet receive looks good on simulator and device. See the QA comment for the multi-wallet Home Receive note (fine to defer).
ben-kaufman
commented
Sep 1, 2026
The single-wallet hardware Receive flow remains green and its review threads are resolved. I filed #709 for the requested Home Receive wallet picker when multiple hardware wallets are paired. @piotr-iohk please re-review the current signed head because the earlier approval was dismissed after the branch update. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Stack
Linked Issues/Tasks
Fixes#707
Validation