@@ -256,12 +256,12 @@ pub trait Ciphersuite: Copy + Clone + PartialEq + Debug {
256
256
challenge ( R , verifying_key, msg)
257
257
}
258
258
259
- /// determine tweak is need
260
- fn is_need_tweaking ( ) -> bool {
259
+ /// determine code is taproot compatible (used in frost-sepc256k1-tr)
260
+ fn is_taproot_compat ( ) -> bool {
261
261
false
262
262
}
263
263
264
- /// aggregate tweak z
264
+ /// aggregate tweak z (used in frost-sepc256k1-tr)
265
265
#[ allow( unused) ]
266
266
fn aggregate_tweak_z (
267
267
z : <<Self :: Group as Group >:: Field as Field >:: Scalar ,
@@ -272,7 +272,7 @@ pub trait Ciphersuite: Copy + Clone + PartialEq + Debug {
272
272
panic ! ( "Not implemented" ) ;
273
273
}
274
274
275
- /// tweaked z for SigningKey sign
275
+ /// tweaked z for SigningKey sign (used in frost-sepc256k1-tr)
276
276
#[ allow( unused) ]
277
277
fn tweaked_z (
278
278
k : <<Self :: Group as Group >:: Field as Field >:: Scalar ,
@@ -284,9 +284,9 @@ pub trait Ciphersuite: Copy + Clone + PartialEq + Debug {
284
284
panic ! ( "Not implemented" ) ;
285
285
}
286
286
287
- /// signature_share tweak
287
+ /// signature_share compatible with taproot (used in frost-sepc256k1-tr)
288
288
#[ allow( unused) ]
289
- fn compute_tweaked_signature_share (
289
+ fn compute_taproot_compat_signature_share (
290
290
signer_nonces : & crate :: round1:: SigningNonces < Self > ,
291
291
binding_factor : crate :: BindingFactor < Self > ,
292
292
group_commitment : crate :: GroupCommitment < Self > ,
@@ -298,23 +298,23 @@ pub trait Ciphersuite: Copy + Clone + PartialEq + Debug {
298
298
panic ! ( "Not implemented" ) ;
299
299
}
300
300
301
- /// calculate tweaked public key
301
+ /// calculate tweaked public key (used in frost-sepc256k1-tr)
302
302
#[ allow( unused) ]
303
303
fn tweaked_public_key (
304
304
public_key : & <Self :: Group as Group >:: Element ,
305
305
) -> <Self :: Group as Group >:: Element {
306
306
panic ! ( "Not implemented" ) ;
307
307
}
308
308
309
- /// calculate tweaked R
309
+ /// calculate taproot compatible R (used in frost-sepc256k1-tr)
310
310
#[ allow( unused) ]
311
- fn tweaked_R (
311
+ fn taproot_compat_R (
312
312
public_key : & <Self :: Group as Group >:: Element ,
313
313
) -> <Self :: Group as Group >:: Element {
314
314
panic ! ( "Not implemented" ) ;
315
315
}
316
316
317
- /// tweaked secret
317
+ /// tweaked secret (used in frost-sepc256k1-tr)
318
318
#[ allow( unused) ]
319
319
fn tweaked_secret_key (
320
320
secret : <<Self :: Group as Group >:: Field as Field >:: Scalar ,
@@ -324,29 +324,29 @@ pub trait Ciphersuite: Copy + Clone + PartialEq + Debug {
324
324
panic ! ( "Not implemented" ) ;
325
325
}
326
326
327
- /// tweaked nonce
327
+ /// calculate taproot compatible nonce (used in frost-sepc256k1-tr)
328
328
#[ allow( unused) ]
329
- fn tweaked_nonce (
329
+ fn taproot_compat_nonce (
330
330
nonce : <<Self :: Group as Group >:: Field as Field >:: Scalar ,
331
331
R : & Element < Self > ,
332
332
) -> <<Self :: Group as Group >:: Field as Field >:: Scalar
333
333
{
334
334
panic ! ( "Not implemented" ) ;
335
335
}
336
336
337
- /// tweaked group commitment
337
+ /// calculate taproot compatible commitment share (used in frost-sepc256k1-tr)
338
338
#[ allow( unused) ]
339
- fn tweaked_group_commitment_share (
339
+ fn taproot_compat_commitment_share (
340
340
group_commitment_share : & <Self :: Group as Group >:: Element ,
341
341
group_commitment : & <Self :: Group as Group >:: Element ,
342
342
) -> <Self :: Group as Group >:: Element
343
343
{
344
344
panic ! ( "Not implemented" ) ;
345
345
}
346
346
347
- /// tweaked verifying share
347
+ /// calculate taproot compatible verifying share (used in frost-sepc256k1-tr)
348
348
#[ allow( unused) ]
349
- fn tweaked_verifying_share (
349
+ fn taproot_compat_verifying_share (
350
350
verifying_share : & <Self :: Group as Group >:: Element ,
351
351
verifying_key : & <Self :: Group as Group >:: Element ,
352
352
) -> <Self :: Group as Group >:: Element
0 commit comments