Skip to content

Commit 536b045

Browse files
committed
frost trusted dealer: use set_int instead of clear
1 parent d3ef472 commit 536b045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/frost/keygen_impl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ int secp256k1_frost_shares_trusted_gen(const secp256k1_context *ctx, secp256k1_f
129129
for (i = 0; i < n_participants; i++) {
130130
secp256k1_scalar share_i, idx;
131131

132-
secp256k1_scalar_clear(&share_i);
132+
secp256k1_scalar_set_int(&share_i, 0);
133133

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

0 commit comments

Comments
 (0)