Skip to content

feat: trezor support#1275

Open
mds1 wants to merge 4 commits intomainfrom
feat/trezor-support
Open

feat: trezor support#1275
mds1 wants to merge 4 commits intomainfrom
feat/trezor-support

Conversation

@mds1
Copy link
Copy Markdown
Contributor

@mds1 mds1 commented Oct 28, 2025

Trezor support was previously added in #1089 but reverted in #1100. This implementation aims to set us up to add more wallet types in the future, while maintaining backwards compatibility with the existing syntaxes for now

This is dependent on using the latest eip712sign release, and a trezor firmware version of at least v2.9.1

Manual Testing Checklist

Ledger (Existing - Should Not Break)

  • just sign - default ledger signing
  • HD_PATH=1 just sign - custom HD path
  • just sign council - nested safe
  • SIMULATE_WITHOUT_LEDGER=1 just simulate - shows deprecation warning

Trezor (New)

  • WALLET_TYPE=trezor just sign - basic signing
  • HD_PATH=1 WALLET_TYPE=trezor just sign - custom HD path
  • WALLET_TYPE=trezor just sign foundation - nested safe
  • Device shows correct domain/message hashes

Keystore

  • WALLET_TYPE=keystore just sign - new syntax
  • USE_KEYSTORE=1 just sign - old syntax shows warning

Simulation & Errors

  • SIMULATE_WITHOUT_WALLET=1 just simulate - no hardware needed
  • WALLET_TYPE=invalid just sign - shows clear error with valid options
  • Missing device shows appropriate error

@mds1 mds1 requested a review from Ethnical October 28, 2025 21:42
@mds1 mds1 requested review from a team as code owners October 28, 2025 21:42
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