-
Notifications
You must be signed in to change notification settings - Fork 182
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
Wrong account#/index# when deriving additional Thorchain addresses #8001
Comments
Closing as this isn't a bug - different wallets use different derivation paths for accounts 0+, this is the state of internet chains. |
You can choose to label this as "not a bug" but it still has multiple negative consequences for ShapeShift.
@gomesalexandre you are technically "correct" that this isn't a "bug" by the definition of a bug. But when everybody else is deriving addresses one way and ShapeShift is alone in deriving them a different way, this issue affects ShapeShift users. (I define "everybody else" as a combination of: Ledger Live, XDEFI, and THORSwap) While it may not be a "bug" there are a number of negative effects that are real and measurable. Even though there is no "correct" derivation path, there are very few reasons to use custom/unique paths and very many reasons to use the same paths the rest of the entire ecosystem uses. As an exercise, I encourage you to enumerate all the pros/cons for why ShapeShift should continue using non-standardized paths here and all the benefits those non-standard paths bring to ShapeShift and its users. Which set of pros/cons has more upside for ShapeShift? |
@mperklin Thanks for the additional context! The issue is this was raised to @shapeshift/operations through a support ticket and eventually as a high-priority bug in the GitHub bug board (and required immediate attention as was wrongly though to be a prod issue from the description). Just to get things clear here, I'm myself in favour of this as a feature and would love to see it added. All points are very valid - I've voiced support for it in the past myself to address the frustration of TS keystore users - especially now with our current focus on making the wallets experience better. If you want to vouch for this feature, |
Overview
Reported in Support and recreated by Ops:
The first address (0th address) is derived with 44'/931'/0'/0/0 which is correct.
Other tools increment the index# (last digit) when deriving additional addresses:
44'/931'/0'/0/1
44'/931'/0'/0/2
44'/931'/0'/0/3
but it seems ShapeShift is incrementing the account number instead:
44'/931'/1'/0/0
44'/931'/2'/0/0
44'/931'/3'/0/0
This creates an inconsistency between how ShapeShift works vs how all other tools work.
If a user creates a 2nd address on any other tool, and then tries to use that address on ShapeShift, they'll think the funds are gone.
Similarly, if someone creates a 2nd address on ShapeShift but then tries to use any other tool, they won't find their funds there either
References and additional details
https://jam.dev/c/33665cda-3e4e-4b77-a518-4c5175803bcf
See the difference^
Acceptance Criteria
ShapeShift uses the proper account derivation index incrementation.
Need By Date
No response
Screenshots/Mockups
No response
Estimated effort
No response
The text was updated successfully, but these errors were encountered: