@@ -102,7 +102,7 @@ typedef struct {
102
102
/** Parse a signer's public nonce.
103
103
*
104
104
* Returns: 1 when the nonce could be parsed, 0 otherwise.
105
- * Args: ctx: a secp256k1 context object
105
+ * Args: ctx: pointer to a context object
106
106
* Out: nonce: pointer to a nonce object
107
107
* In: in66: pointer to the 66-byte nonce to be parsed
108
108
*/
@@ -115,7 +115,7 @@ SECP256K1_API int secp256k1_frost_pubnonce_parse(
115
115
/** Serialize a signer's public nonce
116
116
*
117
117
* Returns: 1 when the nonce could be serialized, 0 otherwise
118
- * Args: ctx: a secp256k1 context object
118
+ * Args: ctx: pointer to a context object
119
119
* Out: out66: pointer to a 66-byte array to store the serialized nonce
120
120
* In: nonce: pointer to the nonce
121
121
*/
@@ -128,7 +128,7 @@ SECP256K1_API int secp256k1_frost_pubnonce_serialize(
128
128
/** Serialize a FROST partial signature
129
129
*
130
130
* Returns: 1 when the signature could be serialized, 0 otherwise
131
- * Args: ctx: a secp256k1 context object
131
+ * Args: ctx: pointer to a context object
132
132
* Out: out32: pointer to a 32-byte array to store the serialized signature
133
133
* In: sig: pointer to the signature
134
134
*/
@@ -141,7 +141,7 @@ SECP256K1_API int secp256k1_frost_partial_sig_serialize(
141
141
/** Parse a FROST partial signature.
142
142
*
143
143
* Returns: 1 when the signature could be parsed, 0 otherwise.
144
- * Args: ctx: a secp256k1 context object
144
+ * Args: ctx: pointer to a context object
145
145
* Out: sig: pointer to a signature object
146
146
* In: in32: pointer to the 32-byte signature to be parsed
147
147
*
@@ -158,7 +158,7 @@ SECP256K1_API int secp256k1_frost_partial_sig_parse(
158
158
/** Serialize a FROST share
159
159
*
160
160
* Returns: 1 when the share could be serialized, 0 otherwise
161
- * Args: ctx: a secp256k1 context object
161
+ * Args: ctx: pointer to a context object
162
162
* Out: out32: pointer to a 32-byte array to store the serialized share
163
163
* In: share: pointer to the share
164
164
*/
@@ -171,7 +171,7 @@ SECP256K1_API int secp256k1_frost_share_serialize(
171
171
/** Parse a FROST share.
172
172
*
173
173
* Returns: 1 when the share could be parsed, 0 otherwise.
174
- * Args: ctx: a secp256k1 context object
174
+ * Args: ctx: pointer to a context object
175
175
* Out: share: pointer to a share object
176
176
* In: in32: pointer to the 32-byte share to be parsed
177
177
*/
@@ -181,27 +181,27 @@ SECP256K1_API int secp256k1_frost_share_parse(
181
181
const unsigned char * in32
182
182
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 ) SECP256K1_ARG_NONNULL (3 );
183
183
184
- /** Creates key generation shares
184
+ /** Creates key shares
185
185
*
186
186
* To generate a key, a trusted dealer generates a share for each other
187
187
* participant.
188
188
*
189
- * Each participant _must_ have a secure channel with the trusted dealer with
190
- * which they can transmit shares to each other .
189
+ * The trusted dealer must transmit shares over secure channels to
190
+ * participants .
191
191
*
192
- * A new seed32 _must_ be used for each key generation session. The trusted
193
- * dealer must NOT REUSE their respective seed32 again for subsequent key
194
- * generation sessions. If a trusted dealer fails to complete this session or
195
- * start a new session to generate a new key, they must NOT REUSE their
196
- * respective seed32 again, but instead generate a new one. It is recommended
197
- * to always choose seed32 uniformly at random to avoid their reuse.
192
+ * Each call to this function must have a UNIQUE and uniformly RANDOM seed32
193
+ * that must that must NOT BE REUSED in subsequent calls to this function and
194
+ * must be KEPT SECRET (even from other participants).
198
195
*
199
196
* Returns: 0 if the arguments are invalid, 1 otherwise
200
197
* Args: ctx: pointer to a context object
201
- * Out: shares: pointer to the key generation shares
198
+ * Out: shares: pointer to the key shares
202
199
* pubshares: pointer to the public verification shares
203
200
* pk: pointer to the x-only public key
204
- * In: seed32: a 32-byte seed as explained above
201
+ * In: seed32: a 32-byte random seed as explained above. Must be
202
+ * unique to this call to
203
+ * secp256k1_frost_shares_trusted_gen and must be
204
+ * uniformly random.
205
205
* threshold: the minimum number of signers required to produce a
206
206
* signature
207
207
* n_participants: the total number of participants
0 commit comments