frost trusted dealer: use set_int instead of clear

This commit is contained in:
Jesse Posner 2024-05-15 12:53:01 -07:00
parent d3ef472559
commit 536b0458ad
No known key found for this signature in database
GPG Key ID: DC2C87EA692CA983

View File

@ -129,7 +129,7 @@ int secp256k1_frost_shares_trusted_gen(const secp256k1_context *ctx, secp256k1_f
for (i = 0; i < n_participants; i++) { for (i = 0; i < n_participants; i++) {
secp256k1_scalar share_i, idx; secp256k1_scalar share_i, idx;
secp256k1_scalar_clear(&share_i); secp256k1_scalar_set_int(&share_i, 0);
for (j = 0; j < threshold; j++) { for (j = 0; j < threshold; j++) {
unsigned char buf[32]; unsigned char buf[32];