@@ -297,7 +297,8 @@ fn generate_predicate_proof(
297297 template_private_key : TemplatePrivateKey ,
298298 value : u64 ,
299299 rule_set : & mut VerificationRuleSet ,
300- ) -> Result < VerifyRequest , WedprError > {
300+ ) -> Result < VerifyRequest , WedprError >
301+ {
301302 user_fill_certificate_attribute ( certificate_attribute_dict, value) ;
302303 let (
303304 sign_certificate_request,
@@ -352,7 +353,8 @@ fn issuer_make_certificate_template(
352353fn user_fill_certificate_attribute (
353354 certificate_attribute_dict : & mut AttributeDict ,
354355 attribute : u64 ,
355- ) {
356+ )
357+ {
356358 let mut attribute_kv = StringToStringPair :: new ( ) ;
357359 attribute_kv. set_key ( TARGET_ATTRIBUTE . to_string ( ) ) ;
358360 attribute_kv. set_value ( attribute. to_string ( ) ) ;
@@ -365,7 +367,8 @@ fn user_prove_rule_set(
365367 certificate_template : & CertificateTemplate ,
366368 user_private_key_str : & str ,
367369 rule_set : & mut VerificationRuleSet ,
368- ) -> Result < VerifyRequest , WedprError > {
370+ ) -> Result < VerifyRequest , WedprError >
371+ {
369372 // In most cases, this nonce should be provided by the verifier to prevent
370373 // replaying attacks.
371374 let verification_nonce_str = verifier:: get_verification_nonce ( ) . unwrap ( ) ;
@@ -382,6 +385,7 @@ fn user_prove_rule_set(
382385fn verifier_verify_rule_set (
383386 rule_set : & mut VerificationRuleSet ,
384387 request : & VerifyRequest ,
385- ) -> bool {
388+ ) -> bool
389+ {
386390 verifier:: verify_selective_disclosure ( & rule_set, & request) . unwrap ( )
387391}
0 commit comments