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

Change to blinding variant slip77 #49

Merged
merged 1 commit into from
Mar 26, 2024
Merged

Conversation

ok300
Copy link
Contributor

@ok300 ok300 commented Mar 22, 2024

Descriptions for the different variants were added here: Blockstream/lwk@cfe9341

DescriptorBlindingKey::Elip151 is intended1 for multisig scenarios, or cases when multiple BIP44 accounts are used. Neither of this fits our use-case.

In addition, it has the drawback2 that

anyone knowing the ordinary descriptor will be able to unblind all the corresponding outputs

The ordinary descriptor is hardcoded in lwk, so this is not a good choice for us.

This PR is therefore switching to blinding key variant to DescriptorBlindingKey::Slip77, where the descriptor blinding key is derived from the BIP32 seed.

Fixes #29

Footnotes

  1. https://github.com/ElementsProject/ELIPs/blob/main/elip-0151.mediawiki#motivation

  2. https://github.com/ElementsProject/ELIPs/blob/main/elip-0151.mediawiki#drawbacks

@ok300 ok300 requested a review from hydra-yse March 22, 2024 10:36
@ok300 ok300 merged commit ccf0b34 into main Mar 26, 2024
2 checks passed
@ok300 ok300 deleted the ok300-blinding-variant-slip77 branch March 26, 2024 04:54
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.

Use slip77 blinding variant to derive blinding keys from seed
2 participants