-
-
Notifications
You must be signed in to change notification settings - Fork 665
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
Legacy firmware support for Unchained paths #4324
base: main
Are you sure you want to change the base?
Legacy firmware support for Unchained paths #4324
Conversation
chore: add changelog
a8c9a64
to
f160812
Compare
I found two differences to how this is implemented in core:
Is it intentional? |
Yes. Unchained does not support p2pkh spends. Also, how would a spend ever be |
I'm not entirely sure, but I believe that if However, my point is not that this is incorrect. The point is that I think the behaviour implemented in this pull request for the legacy firmware differs from the behaviour implemented here. I am uncertain whether the difference is intentional. |
@onvej-sl I've pushed a change which I think restores the logic from previous, however, it's still not clear to me how this pathway would ever evaluate to true if |
so i'm curious: the PR says "support unchained paths", but you seem to be adding restrictions here. Previously the same paths on a Trezor One would be supported on any script type, now we're discussing which script types to keep allowed? |
It depends on what you mean by "supported". If "supported" means you can use the path with safety checks enabled and no warning is displayed, then the paths weren't previously supported for all script types. If "supported" means you can use the path with safety checks turned off or you don't care about the warning, then this pull request restricts the paths to |
What restrictions are being added? This increases the scope of the Unchained paths check to include The only conditional difference is on line 577 where |
yeah, my bad. i didn't notice that there was a common "if full" block in the previous version.
again, callers are explicitly allowed to use |
A got a bit lost in this discussion. I would like to ask @Shadouts, whether you want to allow the use of I'm asking because it is allowed in core but not in this pull request. |
@onvej-sl To answer your question, Unchained has no use for singlesig at those paths. Our only concern is with multisig. But, I don't see how it differs from core. Both conditions are checking |
This change supports new Unchained paths for p2wsh addresses on legacy devices.