-
Notifications
You must be signed in to change notification settings - Fork 198
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
Trezor: it should be possible to use an empty passphrase #639
Comments
@achow101 - any update / input on this from your side? |
It's not clear to me what the actual issue is, can you provide a reproduction for HWI? I don't see anything in HWI that prevents using the empty passphrase. It's not explicitly disallowed; it should just be passing the empty passphrase straight through to the device. |
Ah, I think I see the issue now. |
@moneymanolis Can you test #644 |
Will do asap. Thanks for responding so quickly with a PR. |
Initial testing results @achow101: Result is: On #644 it works, result is sth. like: Update: I get [{"type": "trezor", "path": "webusb:020:2:4", "label": "temp", "model": "trezor_1", "needs_pin_sent": false, "needs_passphrase_sent": true, "error": "Could not open client or get fingerprint information: Passphrase needs to be specified before the fingerprint information can be retrieved", "code": -12}] Shouldn't that work? Just as a sidenote if you send the pin and then go straight to I am working now on testing #644 in conjunction with Specter, too. |
Not necessarily. I think that's just an issue of what users expect. Do they expect it to work if passphrase protection is enabled but no passphrase is provided? Or should they expect to always need to provide a passphrase, even if it's the empty string? I guess either way the behavior should be unified as it currently is not as you point out. |
@matejcik Can you please weigh in and tell us what is the behaviour that makes most sense (so it is aligned with how we do stuff in python-trezor/trezorctl/Suite)? |
Using those changes in Specter cryptoadvance/specter-desktop#1977 and the PR from hwi (#644) works for me! |
We have a bunch of Specter Desktop users who at some point had the passphrase feature enabled but didn't use it in the sense that they used an empty string only. Technically, and the Trezor teams knows this much better, the part of the PBKDF2 function (the salt part) from BIP39 where the passphrase goes is never really empty. It is always filled with the string "mnemonic" and if there is a passphrase this string is concatenated with the passphrase. So, I'd say the passphrase can only be an empty string or a non-empty string. |
Right now there's actually a split between trezorctl and Suite. The Suite behavior is the more correct one UX-wise. So I believe that if the passphrase is not explicitly specified, HWI should default to the |
In case a user enters empty passphrase on Trezor, it should work and a passphrase-less wallet should be open (the same as on a Trezor with passphrase protection off).
It seems that HWI disallows empty passphrases leading to confusions such as:
The text was updated successfully, but these errors were encountered: