Skip to content

Commit 2fcd799

Browse files
jonasnickbenma
authored andcommitted
f Add ec_commitments
1 parent 59113ab commit 2fcd799

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
@@ -820,9 +820,8 @@ static int secp256k1_ec_commit_verify(const secp256k1_context* ctx, const secp25
820820
}
821821

822822
/* Return commitment == commitment_tmp */
823-
secp256k1_gej_set_infinity(&pj);
824823
secp256k1_pubkey_load(ctx, &p, &commitment_tmp);
825-
secp256k1_gej_add_ge_var(&pj, &pj, &p, NULL);
824+
secp256k1_gej_set_ge(&pj, &p);
826825
secp256k1_pubkey_load(ctx, &p, commitment);
827826
secp256k1_ge_neg(&p, &p);
828827
secp256k1_gej_add_ge_var(&pj, &pj, &p, NULL);

0 commit comments

Comments
 (0)