Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support full passphrase in newest Trezor firmwares (1.9.0 and 2.3.0) #2864

Closed
tsusanka opened this issue Apr 22, 2020 · 11 comments
Closed

Support full passphrase in newest Trezor firmwares (1.9.0 and 2.3.0) #2864

tsusanka opened this issue Apr 22, 2020 · 11 comments

Comments

@tsusanka
Copy link

tsusanka commented Apr 22, 2020

We have done some modifications regarding how passphrase is communicated between Trezor and the host.

Please upgrade the trezor-connect dependency of your application to latest (8.1.1 atm), otherwise your users won't be able to enter passphrase on the device (on Trezor T).

Thanks!

Related: #2214

@welcome
Copy link

welcome bot commented Apr 22, 2020

Thanks for opening your first issue here! Be sure to follow the issue template for bug report or feature request!

@punkr0ck
Copy link

This is urgent as you aren't able to access your LSK.

@hirishh
Copy link
Contributor

hirishh commented May 3, 2020

Hello @tsusanka

lisk-desktop (and also liskish-wallet) use mainly trezor.js in order to integrate it with the electron app. Trezor-connect is used only in the web-development phase. Is the trezor.js updated also? Is it possible to integrate trezor-connect with electron?

@reyraa
Copy link
Contributor

reyraa commented May 4, 2020

Thanks for the heads-up @tsusanka . This is planned for the current week. I'll get in touch if I needed more info. thank you.

@szymonlesisz
Copy link

szymonlesisz commented May 4, 2020

Hi @hirishh
trezor.js was deprecated about a year ago and receives only important fixes (like this one)
trezor-connect works in web, nodejs, electron and even react-native (WIP Android only)

I was trying to add trezor-connect to this project but i've found that you don't work with passphrase at all. The only handled requests from the device is CONNECT/DISCONNECT/PIN (on T1).

Summary:
You are not affected by this change.
Not because of outdated trezor.js but because you don't handle trezor passphrase requests at all, so it wasn't even work with previous firmware versions.

I would strongly recommend to use trezor-connect. Since i wasn't able to run it here i will prepare some examples in connect branch to show you possible ways to implement it

@szymonlesisz
Copy link

szymonlesisz commented May 4, 2020

I believe this is your case: trezor-connect in main electron process and communication thru ipc:

https://github.com/trezor/connect/tree/develop/examples/electron/main-process

@hirishh
Copy link
Contributor

hirishh commented May 4, 2020

Hello @szymonlesisz,

Thank you for the heads up. It's true lisk desktop is not using passphrase fuctionalities, but liskish wallet does ( https://github.com/hirishh/liskish-wallet/blob/2.0.0/app/src/hw/trezor.js#L108 )

Thank you for the example with electron. I will try to integrate it and get rid of trezor.js.

@liskdev better to plan a migration to trezor connect guys!

Thanks!

@hirishh
Copy link
Contributor

hirishh commented May 4, 2020

Hello @reyraa,
Actually, I think lisk-desktop is broken. Apparently inserting passphrase is mandatory (the device expect that). If you do not want to implement this functionality, at least you need to listen on "passphrase" event and set an empty string directly without interacting with the user.

hirish

@punkr0ck
Copy link

punkr0ck commented May 4, 2020

@reyraa it has to be implemented. if you don't do this, then people who use passphrases can't use lisk dekstop anymore. i posted about this in mid 2019: #2214

now it is mandatory.

@sridharmeganathan sridharmeganathan changed the title Full passphrase support in newest Trezor firmwares (1.9.0 and 2.3.0) Support full passphrase in newest Trezor firmwares (1.9.0 and 2.3.0) May 19, 2020
@sridharmeganathan sridharmeganathan removed this from the Sprint 24 milestone Jun 3, 2020
@sridharmeganathan sridharmeganathan added this to the Sprint 25 milestone Jun 3, 2020
@sridharmeganathan sridharmeganathan removed this from the Sprint 25 milestone Jun 18, 2020
@reyraa
Copy link
Contributor

reyraa commented Dec 14, 2020

The passphrase issue is resolved and will be available via v1.27.2. But migrating to trezor-connect will come in a dedicated: version v2.1.0.

@ManuGowda
Copy link
Contributor

Adapt hardware wallet integration for Lisk Core v4 will ensure the firmware is updated #4041

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants