@@ -127,7 +127,7 @@ use secp256kfun::{
127
127
///
128
128
/// A blinded_nonce and a blinded_challenge;
129
129
/// Also returns a needs_negation for the blinded nonce
130
- pub fn create_blinded_challenge < ' a , H : Digest < OutputSize = U32 > + Clone , NG > (
130
+ pub fn create_blinded_challenge < H : Digest < OutputSize = U32 > + Clone , NG > (
131
131
nonce : Point < EvenY > ,
132
132
public_key : Point < EvenY > ,
133
133
message : Message ,
@@ -248,7 +248,7 @@ impl Blinder {
248
248
}
249
249
}
250
250
251
- /// Load blinding tweaks from previously randomly generated scalars.
251
+ /// Load blinding tweaks from previously randomly generated scalars, for reloading state
252
252
pub fn from_tweaks < H : Digest < OutputSize = U32 > + Clone , NG : Tag + NonceGen + Clone > (
253
253
message : Message ,
254
254
public_nonce : Point < EvenY > ,
@@ -260,7 +260,7 @@ impl Blinder {
260
260
public_nonce,
261
261
public_key,
262
262
message,
263
- schnorr. clone ( ) ,
263
+ schnorr,
264
264
& mut blinding_tweaks,
265
265
) ;
266
266
@@ -411,7 +411,7 @@ where
411
411
return Some ( secret) ;
412
412
}
413
413
}
414
- return None ;
414
+ None ;
415
415
}
416
416
417
417
/// Sign a blinded challenge and delete the associated secret_nonce
@@ -472,7 +472,7 @@ where
472
472
None
473
473
} else {
474
474
// Otherwise, sign and store the signature
475
- self . sign_single ( sig_request. clone ( ) )
475
+ self . sign_single ( sig_request)
476
476
} ;
477
477
sig_response
478
478
} )
0 commit comments