-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Configurable Bip44 CoinType & HdPath for SDK users #4300
Configurable Bip44 CoinType & HdPath for SDK users #4300
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4300 +/- ##
==========================================
- Coverage 59.12% 59.09% -0.03%
==========================================
Files 217 217
Lines 14605 14618 +13
==========================================
+ Hits 8635 8639 +4
- Misses 5332 5341 +9
Partials 638 638 |
Codecov Report
@@ Coverage Diff @@
## master #4300 +/- ##
==========================================
- Coverage 54.58% 54.54% -0.04%
==========================================
Files 248 248
Lines 15967 15980 +13
==========================================
+ Hits 8716 8717 +1
- Misses 6617 6629 +12
Partials 634 634 |
Any thoughts on this @jleni? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally, I believe it is advisable to support varying BIP32 HD paths and not have it hard-coded in a SDK. Left some general feedback.
This will break Ledger app compatibility. Ledger enforces BIP44 registrations and apps are signed and restricted to paths that start with 44'/118'. Atoms are registered at 118: https://github.com/satoshilabs/slips/blob/master/slip-0044.md If derivation paths do not start with 44'/118' any cryptography operation will be rejected by the secure element. A new app will need to be published for a different coinType |
Any project based on cosmos-sdk should publish their own ledger app, if they want to singed by ledger.
Yes |
What is blocking merge here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
Sorry for the delay on this. This get an ACK from me. It needs to have merge conflicts resolved (sorry @yangyanqing). |
A few comments: 2- Also should this change trigger an issue in 3- About HSM integration, should part of this functionality move to gaia? If people plan to develop their own apps for each specific case, this will definitely require some rework. On the other hand, These points are probably part of a longer discussion and not a reason to block the PR at all, but I think it would be something to take into account in future work. |
Interesting question, do we even need paths other than Ignoring ☝️, I do think we need the docs updates in this PR to point users at the correct way to enable ledger integration for their apps if we are removing it. |
All conflicts were resolved. @alexanderbez @jackzampolin @jleni BTW: Your new avatar is so cool ! 👍 @alexanderbez |
Any news about some new tests that check this new functionality? |
Thanks @yangyanqing :) |
Co-Authored-By: Juan Leni <juan.leni@zondax.ch>
Do we have a tracking issue for the docs update here? |
I'm afraid no - @yangyanqing feel like writing some little docs about this change? |
Which doc should be add to for this change ? @jackzampolin @alessio |
Let's start with godoc comments: coint type is no longer static, to start with. I'd love to see some documentation written (somehow, somewhere) with the users of this change (namely developers) in mind. |
Add comments in #4474 . |
close: #4144
docs/
)clog add [section] [stanza] [message]
Files changed
in the github PR explorerFor Admin Use: