Skip to content

add tweak() method #8

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

Merged
merged 6 commits into from
Jun 12, 2022

Conversation

motorina0
Copy link
Member

This is a follow up from this deprecated PR

Add the tweak(t: Buffer): ECPairInterface; method to ECPairInterface

It can tweak a keyPair that has a privateKey, and also a keyPair where only the publicKey is present.

The unit tests use the tapTweakHash() function to create the tweak hash. This has several benefits:

  • a deterministic way to produces the hash
  • do not pollute the fixtures with the tweak value
  • could (manually) check against regtest that the tweak is fine

@motorina0 motorina0 changed the title add tweak() operation add tweak() method Jun 7, 2022
@motorina0 motorina0 requested a review from junderw June 7, 2022 19:55
@junderw junderw merged commit 259e06b into bitcoinjs:master Jun 12, 2022
@junderw
Copy link
Member

junderw commented Jun 12, 2022

I'll publish once bip32 is merged and we can publish together.

@motorina0
Copy link
Member Author

I'll publish once bip32 is merged and we can publish together.

bip32 published

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.

3 participants