Skip to content

Commit e2728ee

Browse files
jonasnickbenma
authored andcommitted
f Add ec_commitments
1 parent d3d9269 commit e2728ee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/secp256k1.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -794,9 +794,8 @@ static int secp256k1_ec_commit_verify(const secp256k1_context* ctx, const secp25
794794
}
795795

796796
/* Return commitment == commitment_tmp */
797-
secp256k1_gej_set_infinity(&pj);
798797
secp256k1_pubkey_load(ctx, &p, &commitment_tmp);
799-
secp256k1_gej_add_ge_var(&pj, &pj, &p, NULL);
798+
secp256k1_gej_set_ge(&pj, &p);
800799
secp256k1_pubkey_load(ctx, &p, commitment);
801800
secp256k1_ge_neg(&p, &p);
802801
secp256k1_gej_add_ge_var(&pj, &pj, &p, NULL);

0 commit comments

Comments
 (0)