diff --git a/src/modules/generator/main_impl.h b/src/modules/generator/main_impl.h index c20d4cc33..1ba7413a9 100644 --- a/src/modules/generator/main_impl.h +++ b/src/modules/generator/main_impl.h @@ -288,10 +288,8 @@ int secp256k1_pedersen_commitment_parse(const secp256k1_context* ctx, secp256k1_ !secp256k1_ge_set_xquad(&ge, &x)) { return 0; } - if (input[0] & 1) { - secp256k1_ge_neg(&ge, &ge); - } - secp256k1_pedersen_commitment_save(commit, &ge); + + memcpy(commit->data, input, 33); return 1; }