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

support more bip32 params for chains #145

Merged
merged 2 commits into from
Mar 6, 2024
Merged

support more bip32 params for chains #145

merged 2 commits into from
Mar 6, 2024

Conversation

TheTrunk
Copy link
Member

@TheTrunk TheTrunk commented Mar 2, 2024

As per
https://github.com/satoshilabs/slips/blob/master/slip-0132.md
and
https://electrum.readthedocs.io/en/latest/xpub_version_bytes.html
SSP will now use proper version bytes of bip32 for extended public keys. This affects bitcoin networks only which is the only network specifying it for segwit properly. Other networks will follow P2SH bip32 specifications unless they specify.
SSP will always support BOTH version bytes. Defaulting to registered slip value with a fallback to default p2sh value of the network.
Already synced chains of ssp will display the synced version of xpub. Newly synced chains will display new verisons. Restoration will force new version of version bytes.
For compatibility reasons both ssp wallet and ssp key need to be updated in case of syncing some chain. Compatibility is kept for existing wallets.
Both bip32 versions bytes generate the same keypairs, addresses, only human readable version of extended keys is affected.

@TheTrunk TheTrunk requested a review from blondfrogs March 2, 2024 15:37
@TheTrunk TheTrunk merged commit 1767b03 into master Mar 6, 2024
2 checks passed
@TheTrunk TheTrunk deleted the bip branch July 23, 2024 07:34
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.

1 participant