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 ordinary and x-only tweaking to spec and simplify implementation #167

Merged
merged 9 commits into from
Mar 22, 2022
Next Next commit
musig: fix number of tweaks in tweak_test
  • Loading branch information
jonasnick committed Feb 7, 2022
commit f0edc9075539bddff2726065271c86fd7b480c9f
2 changes: 1 addition & 1 deletion src/modules/musig/tests_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ void musig_tweak_test(secp256k1_scratch_space *scratch) {
* that key. If xonly is set to true, the function f is normalizes the input
* point to have an even X-coordinate ("xonly-tweaking").
* Otherwise, the function f is the identity function. */
for (i = 1; i < N_TWEAKS; i++) {
for (i = 1; i <= N_TWEAKS; i++) {
unsigned char tweak[32];
int P_parity;
int xonly = secp256k1_testrand_bits(1);
Expand Down