forked from kaspanet/kaspad
-
Notifications
You must be signed in to change notification settings - Fork 26
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
BIP39 Cointype Fixes #44
Merged
lemois-1337
merged 8 commits into
karlsen-network:master
from
lemois-1337:2024-bip39-cointype-fixes
Mar 6, 2024
Merged
BIP39 Cointype Fixes #44
lemois-1337
merged 8 commits into
karlsen-network:master
from
lemois-1337:2024-bip39-cointype-fixes
Mar 6, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Following the recent transition from Kaspa coin type (111111) to Karlsen coin type (121337) - a change already documented on https://github.com/satoshilabs/slips/blob/master/slip-0044.md - we're in the process of adopting our specific BIP39 derivation path. This step is crucial for most integrations that do not operate a node daemon, such as hardware wallets, to ensure address compatibility across different platforms. A unique derivation path is essential for this purpose. We currently have wallets that use the old coin type, necessitating support for both the legacy and new derivation paths. To facilitate this, a new command line option has been introduced for the 'create' subcommand: -l (short) or --legacy (long). Here's how it functions: * By default, the command creates or imports a version 2 wallet using the new coin type 121337. * When the legacy option is invoked, it creates or imports a version 1 wallet with the original coin type 111111. Although wallets with version 1 will remain operational, migrating KLS to a newly established version 2 wallet is strongly advised for future compatibility with both software and hardware wallets. Final implementation for commit e20a090
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #44 +/- ##
==========================================
+ Coverage 61.34% 61.36% +0.01%
==========================================
Files 646 647 +1
Lines 31898 31914 +16
==========================================
+ Hits 19568 19584 +16
Misses 9480 9480
Partials 2850 2850 ☔ View full report in Codecov by Sentry. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following the recent transition from Kaspa coin type
111111
to Karlsen coin type121337
- a change already documented on https://github.com/satoshilabs/slips/blob/master/slip-0044.md - we're in the process of adopting our specific BIP39 derivation path. This step is crucial for most integrations that do not operate a node daemon, such as hardware wallets, to ensure address compatibility across different platforms. A unique derivation path is essential for this purpose.We currently have wallets that use the old coin type, necessitating support for both the legacy and new derivation paths. To facilitate this, a new command line option has been introduced for the
create
subcommand:-l
(short) or--legacy
(long). Here's how it functions:121337
.111111
.Although wallets with version 1 will remain operational, migrating KLS to a newly established version 2 wallet is strongly advised for future compatibility with both software and hardware wallets.
Final implementation for commit e20a090
Small change has been added to the
karlsenwallet
to show the used wallet version. Also a warning has been added when using the old wallet v1 with old derivation path.WIP because some other changes related to BIP39 may be committed at a later stage.