alloy-rs / alloy

Transports, Middleware, and Networks for the Alloy project
https://alloy.rs
Apache License 2.0
650 stars 231 forks source link

[Feature] Add Passphrase support to Trezor Signer (hidden wallet) #1201

Open zeroknots opened 2 months ago

zeroknots commented 2 months ago

Component

signers

Describe the feature you would like

Trezor supports a feature of hidden wallets (passphrases).

A passphrase can be provided via the trezor protocol, that yields a different private key.

https://docs.rs/trezor-client/0.1.4/trezor_client/client/common/struct.PassphraseRequest.html#method.ack_passphrase

It would be great if we can add this to Alloy

Additional context

https://github.com/trezor/trezor-firmware/blob/c8b811bac51c835545c5f52ec4873c3f0e4e3385/rust/trezor-client/examples/interaction.rs#L25

zerosnacks commented 2 months ago

cc @joshieDo :wink: