Skip to content

feat: add Trezor emulator bridge#563

Open
ovitrif wants to merge 1 commit into
masterfrom
ovi/trezor-bridge-transport
Open

feat: add Trezor emulator bridge#563
ovitrif wants to merge 1 commit into
masterfrom
ovi/trezor-bridge-transport

Conversation

@ovitrif
Copy link
Copy Markdown
Collaborator

@ovitrif ovitrif commented May 21, 2026

Description

This PR adds dev/E2E-only Trezor Bridge transport support so the iOS Trezor dashboard can connect to the deterministic emulator from synonymdev/bitkit-docker.

Bridge mode is guarded behind TREZOR_BRIDGE=true in Debug/E2E builds, keeps BLE behavior unchanged by default, and adds TREZOR_ELECTRUM_URL for local regtest Electrum runs.

Context: current iOS releases do not expose WebUSB-style access for devices like Trezor in Safari/WebKit, and Trezor's current connected-device path on iOS is Bluetooth for models that support it. The bitkit-docker tooling still stays the right emulator path for simulator automation because Trezor User Env exposes the deterministic emulator through Bridge on the Mac.

Verification Status

This PR has only been compile-verified locally. The full emulator-backed flow against bitkit-docker has been run against #564 with success, instead.

Linked Issues/Tasks

Screenshot / Video

N/A

QA Notes

Manual Tests

  • 1. bitkit-docker main → docker compose up -d./scripts/trezor-emulator start: Bridge reports the deterministic emulator at http://127.0.0.1:21325.
  • 2. Debug/E2E app with TREZOR_BRIDGE=true → Settings → Advanced → Trezor Hardware Wallet → scan/connect: emulator appears as a Bridge device and connects.
  • 3. regression: Debug app without TREZOR_BRIDGE=true → Settings → Advanced → Trezor Hardware Wallet: BLE scanning and pairing behavior stays unchanged.

Automated Checks

  • swiftformat Bitkit/ViewModels/Trezor/TrezorViewModel.swift
  • Covered by the stacked follow-up compile validation: xcodebuild build-for-testing -scheme BitkitAITests -only-testing:BitkitUITests/TrezorBridgeDashboardUITests
  • Not yet run: the full TEST_TREZOR_EMU=1 emulator-backed UI suite against bitkit-docker.

Review order

@ovitrif ovitrif changed the title feat: add Trezor Bridge transport feat: add Trezor emulator bridge May 21, 2026
@ovitrif ovitrif self-assigned this May 21, 2026
@ovitrif ovitrif added this to the 2.3.0 milestone May 21, 2026
Base automatically changed from feat/trezor-integration to master May 21, 2026 23:53
@ovitrif ovitrif marked this pull request as ready for review May 21, 2026 23:53
@ovitrif ovitrif modified the milestones: 2.3.0, 2.4.0 May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant