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 missing segwit BSQ keychain path to wallet info #6604

Merged

Conversation

stejbac
Copy link
Contributor

@stejbac stejbac commented Mar 11, 2023

Add the new account path 44'/142'/1' for segwit BSQ to the wallet info view, which was missed from PR #5109 making the wallet & UI changes to implement segwit BSQ. Also format all the paths found by iterating over the active wallet keychains, which are set to the constant lists defined in BisqKeyChainGroupStructure, instead of using hard-coded string literals. In this way, the four paths are only defined in one place (though it is extremely unlikely they would ever change).

stejbac added 2 commits March 11, 2023 09:44
Add the new account path "44'/142'/1'" for segwit BSQ to the wallet info
view, which was missed from PR bisq-network#5109 making the wallet & UI changes to
implement segwit BSQ. Also format the paths from the constants defined
in 'BisqKeyChainGroupStructure', instead of using string literals, so
that they are only defined in one place. (Though it is extremely
unlikely the paths would ever change.)
Add private method 'WalletInfoView.addAccountPaths', similar to the
method 'addXpubKeys', to iterate over the active wallet keychains,
formatting & displaying the derivation paths, instead of using the 4
constants defined in BisqKeyChainGroupStructure. Also simplify the code
slightly by updating the 'gridRow' field directly instead of passing it
as a method argument.
@ripcurlx ripcurlx added this to the v1.9.10 milestone Mar 27, 2023
Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

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

utACK

@ripcurlx ripcurlx merged commit 324f5ef into bisq-network:master Mar 27, 2023
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.

2 participants