Skip to content

Commit

Permalink
frost trusted dealer: use set_int instead of clear
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseposner committed May 15, 2024
1 parent d3ef472 commit 536b045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/frost/keygen_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ int secp256k1_frost_shares_trusted_gen(const secp256k1_context *ctx, secp256k1_f
for (i = 0; i < n_participants; i++) {
secp256k1_scalar share_i, idx;

secp256k1_scalar_clear(&share_i);
secp256k1_scalar_set_int(&share_i, 0);

for (j = 0; j < threshold; j++) {
unsigned char buf[32];
Expand Down

0 comments on commit 536b045

Please sign in to comment.