@@ -40,8 +40,11 @@ fn test_proof_dlog_bitflips_bls() {
4040fn test_proof_pedersen_bitflips_bls ( ) {
4141 let mut rng = OsRng ;
4242
43-
44- let ( morphismp, witness) = pedersen_commitment ( G :: random ( & mut rng) , Scalar :: random ( & mut rng) , Scalar :: random ( & mut rng) ) ;
43+ let ( morphismp, witness) = pedersen_commitment (
44+ G :: random ( & mut rng) ,
45+ Scalar :: random ( & mut rng) ,
46+ Scalar :: random ( & mut rng) ,
47+ ) ;
4548 let protocol = SchnorrProof :: from ( morphismp) ;
4649 let nizk =
4750 NISigmaProtocol :: < SchnorrProof < G > , ShakeCodec < G > > :: new ( b"test-proof-bitflips" , protocol) ;
@@ -69,8 +72,10 @@ fn test_proof_dlog_bitflips_ristretto() {
6972 let mut rng = OsRng ;
7073 let ( morphismp, witness) = discrete_logarithm ( DalekScalar :: random ( & mut rng) ) ;
7174 let protocol = SchnorrProof :: from ( morphismp) ;
72- let nizk =
73- NISigmaProtocol :: < SchnorrProof < RistrettoPoint > , ShakeCodec < RistrettoPoint > > :: new ( b"test-proof-bitflips" , protocol) ;
75+ let nizk = NISigmaProtocol :: < SchnorrProof < RistrettoPoint > , ShakeCodec < RistrettoPoint > > :: new (
76+ b"test-proof-bitflips" ,
77+ protocol,
78+ ) ;
7479
7580 let proof = nizk. prove_compact ( & witness, & mut rng) . unwrap ( ) ;
7681
@@ -124,8 +129,10 @@ fn test_proof_dlog_extra_bytes_ristretto() {
124129 let mut rng = OsRng ;
125130 let ( morphismp, witness) = discrete_logarithm ( DalekScalar :: random ( & mut rng) ) ;
126131 let protocol = SchnorrProof :: from ( morphismp) ;
127- let nizk =
128- NISigmaProtocol :: < SchnorrProof < RistrettoPoint > , ShakeCodec < RistrettoPoint > > :: new ( b"test-proof-extra-bytes" , protocol) ;
132+ let nizk = NISigmaProtocol :: < SchnorrProof < RistrettoPoint > , ShakeCodec < RistrettoPoint > > :: new (
133+ b"test-proof-extra-bytes" ,
134+ protocol,
135+ ) ;
129136
130137 let proof = nizk. prove_compact ( & witness, & mut rng) . unwrap ( ) ;
131138
0 commit comments