From 536b0458ad4bf2de869bfb2d7b9d6f2fbafde4bc Mon Sep 17 00:00:00 2001 From: Jesse Posner Date: Wed, 15 May 2024 12:53:01 -0700 Subject: [PATCH] frost trusted dealer: use set_int instead of clear --- src/modules/frost/keygen_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/frost/keygen_impl.h b/src/modules/frost/keygen_impl.h index b7e029a0b..f863a8b85 100644 --- a/src/modules/frost/keygen_impl.h +++ b/src/modules/frost/keygen_impl.h @@ -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];