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

add bip44 derivation paths #604

Merged
merged 6 commits into from
Jan 4, 2023
Merged

add bip44 derivation paths #604

merged 6 commits into from
Jan 4, 2023

Conversation

smk762
Copy link
Collaborator

@smk762 smk762 commented Dec 22, 2022

Sourced from https://github.com/satoshilabs/slips/blob/master/slip-0044.md
Need to merge this before merging KomodoPlatform/developer-docs#420 (comment)

@sergeyboyko0791 For coins like XXX-PLG20 should the MATIC derivation path be added (and same for other EVMs)?

And re: #512 (comment) what will happen with coins that lack this info?

@smk762 smk762 marked this pull request as draft December 22, 2022 14:40
sergeyboyko0791
sergeyboyko0791 approved these changes Dec 22, 2022
@sergeyboyko0791
Copy link

sergeyboyko0791 commented Dec 22, 2022

Yes, it's better to add the derivation path for ERC20 tokens the same as for platform coins, because there is still a possibility to activate the ERC20 token with the legacy enable RPC. In that case the ERC20 token config is the only source for such info.

For coins like XXX-PLG20 should the MATIC derivation path be added (and same for other EVMs)?

@smk762 smk762 marked this pull request as ready for review December 31, 2022 14:04
@smk762
Copy link
Collaborator Author

smk762 commented Dec 31, 2022

Yes, it's better to add the derivation path for ERC20 tokens the same as for platform coins, because there is still a possibility to activate the ERC20 token with the legacy enable RPC. In that case the ERC20 token config is the only source for such info.

For coins like XXX-PLG20 should the MATIC derivation path be added (and same for other EVMs)?

Done. I've also updated a few tickers which did not have a protocol suffix (ref: #498)

Will handle Trezor name info in separate PR. This info is not available in a convenient form - the list at https://trezor.io/coins is incomplete - for example QTUM is not shown (and is not in source code of page) until explicitly searched for. I'll contact Satoshi Labs to see if they can provide a complete list in csv or json format.

coins Outdated Show resolved Hide resolved
@cipig
Copy link
Member

cipig commented Jan 3, 2023

if tickers are changed, they need to be changed in https://github.com/KomodoPlatform/coins/tree/master/api_ids too
or we should change the logic, so that we don't need to add USDT-BEP20 and USDT-PLG20 to the api_ids, but just USDT

@smk762 smk762 requested a review from cipig January 3, 2023 15:05
@smk762
Copy link
Collaborator Author

smk762 commented Jan 3, 2023

if tickers are changed, they need to be changed in https://github.com/KomodoPlatform/coins/tree/master/api_ids too or we should change the logic, so that we don't need to add USDT-BEP20 and USDT-PLG20 to the api_ids, but just USDT

I've updated the API json files, we can change logic in a different PR

@@ -204,7 +204,7 @@
"FIRO-BEP20": "firo-firo",
"FIRO": "firo-firo",
"FJC-BEP20": "fjc-fujicoin",
"FJC": "fjc-fujicoin",
"FJCB-BEP20": "fjc-fujicoin",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is the wrong coin, FJC is still FJC, the native coin, FJCB (next line) is now FJCB-BEP20, the BEP20 token

Copy link

@sergeyboyko0791 sergeyboyko0791 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! One question - README.md contains 7. Trezor coin name (optional) topic, but trezor_coin field hasn't been added in this PR. Do you plan to add the field at the next PR?

README.md Outdated

## 6. Derivation Path

The [BIP44 derivation path](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki) os now required to ensure Heirarchical deterministic wallet functionality. The best source for this data is via [Satoshi Labs SLP-044](https://github.com/satoshilabs/slips/blob/master/slip-0044.md)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is path os now required the typo?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed, thanks

@smk762
Copy link
Collaborator Author

smk762 commented Jan 4, 2023

Will handle Trezor name info in separate PR. This info is not available in a convenient form - the list at https://trezor.io/coins is incomplete - for example QTUM is not shown (and is not in source code of page) until explicitly searched for. I'll contact Satoshi Labs to see if they can provide a complete list in csv or json format.

Will handle Trezor name info in separate PR. This info is not available in a convenient form - the list at https://trezor.io/coins is incomplete - for example QTUM is not shown (and is not in source code of page) until explicitly searched for. I've contacted Satoshi Labs to see if they can provide a complete list in csv or json format and am awaiting a response. If no reply soon, I'll add what I can from the default page link.

Copy link

@SirSevenG SirSevenG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@smk762 smk762 merged commit 8b6018a into master Jan 4, 2023
@smk762 smk762 deleted the add_derivation_paths branch January 4, 2023 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants