@@ -127,7 +127,7 @@ use secp256kfun::{
127127///
128128/// A blinded_nonce and a blinded_challenge;
129129/// 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 > (
131131 nonce : Point < EvenY > ,
132132 public_key : Point < EvenY > ,
133133 message : Message ,
@@ -248,7 +248,7 @@ impl Blinder {
248248 }
249249 }
250250
251- /// Load blinding tweaks from previously randomly generated scalars.
251+ /// Load blinding tweaks from previously randomly generated scalars, for reloading state
252252 pub fn from_tweaks < H : Digest < OutputSize = U32 > + Clone , NG : Tag + NonceGen + Clone > (
253253 message : Message ,
254254 public_nonce : Point < EvenY > ,
@@ -260,7 +260,7 @@ impl Blinder {
260260 public_nonce,
261261 public_key,
262262 message,
263- schnorr. clone ( ) ,
263+ schnorr,
264264 & mut blinding_tweaks,
265265 ) ;
266266
@@ -411,7 +411,7 @@ where
411411 return Some ( secret) ;
412412 }
413413 }
414- return None ;
414+ None
415415 }
416416
417417 /// Sign a blinded challenge and delete the associated secret_nonce
@@ -472,7 +472,7 @@ where
472472 None
473473 } else {
474474 // Otherwise, sign and store the signature
475- self . sign_single ( sig_request. clone ( ) )
475+ self . sign_single ( sig_request)
476476 } ;
477477 sig_response
478478 } )
0 commit comments