@@ -6,7 +6,7 @@ use rand::{
66} ;
77
88use sigma_rs:: {
9- codec:: ShakeCodec , group_morphism:: msm_pr, GroupMorphismPreimage , NISigmaProtocol , SchnorrProof ,
9+ codec:: ShakeCodec , group_morphism:: msm_pr, GroupMorphismPreimage , NISigmaProtocol , SchnorrProtocol ,
1010} ;
1111
1212type G = G1Projective ;
@@ -222,18 +222,18 @@ fn test_bbs_blind_commitment_computation() {
222222}
223223
224224/// This part tests the implementation of the SigmaProtocol trait for the
225- /// SchnorrProof structure as well as the Fiat-Shamir NISigmaProtocol transform
225+ /// SchnorrProtocol structure as well as the Fiat-Shamir NISigmaProtocol transform
226226#[ allow( non_snake_case) ]
227227#[ test]
228228fn NI_discrete_logarithm ( ) {
229229 let mut rng = OsRng ;
230230 let ( morphismp, witness) = discrete_logarithm :: < G > ( & mut rng) ;
231231
232232 // The SigmaProtocol induced by morphismp
233- let protocol = SchnorrProof ( morphismp) ;
233+ let protocol = SchnorrProtocol ( morphismp) ;
234234 // Fiat-Shamir wrapper
235235 let domain_sep = b"test-fiat-shamir-schnorr" ;
236- let mut nizk = NISigmaProtocol :: < SchnorrProof < G > , ShakeCodec < G > , G > :: new ( domain_sep, protocol) ;
236+ let mut nizk = NISigmaProtocol :: < SchnorrProtocol < G > , ShakeCodec < G > , G > :: new ( domain_sep, protocol) ;
237237
238238 // Batchable and compact proofs
239239 let proof_batchable_bytes = nizk. prove_batchable ( & witness, & mut rng) ;
@@ -258,10 +258,10 @@ fn NI_dleq() {
258258 let ( morphismp, witness) = dleq :: < G > ( & mut rng) ;
259259
260260 // The SigmaProtocol induced by morphismp
261- let protocol = SchnorrProof ( morphismp) ;
261+ let protocol = SchnorrProtocol ( morphismp) ;
262262 // Fiat-Shamir wrapper
263263 let domain_sep = b"test-fiat-shamir-DLEQ" ;
264- let mut nizk = NISigmaProtocol :: < SchnorrProof < G > , ShakeCodec < G > , G > :: new ( domain_sep, protocol) ;
264+ let mut nizk = NISigmaProtocol :: < SchnorrProtocol < G > , ShakeCodec < G > , G > :: new ( domain_sep, protocol) ;
265265
266266 // Batchable and compact proofs
267267 let proof_batchable_bytes = nizk. prove_batchable ( & witness, & mut rng) ;
@@ -286,10 +286,10 @@ fn NI_pedersen_commitment() {
286286 let ( morphismp, witness) = pedersen_commitment :: < G > ( & mut rng) ;
287287
288288 // The SigmaProtocol induced by morphismp
289- let protocol = SchnorrProof ( morphismp) ;
289+ let protocol = SchnorrProtocol ( morphismp) ;
290290 // Fiat-Shamir wrapper
291291 let domain_sep = b"test-fiat-shamir-pedersen-commitment" ;
292- let mut nizk = NISigmaProtocol :: < SchnorrProof < G > , ShakeCodec < G > , G > :: new ( domain_sep, protocol) ;
292+ let mut nizk = NISigmaProtocol :: < SchnorrProtocol < G > , ShakeCodec < G > , G > :: new ( domain_sep, protocol) ;
293293
294294 // Batchable and compact proofs
295295 let proof_batchable_bytes = nizk. prove_batchable ( & witness, & mut rng) ;
@@ -314,10 +314,10 @@ fn NI_pedersen_commitment_dleq() {
314314 let ( morphismp, witness) = pedersen_commitment_dleq :: < G > ( & mut rng) ;
315315
316316 // The SigmaProtocol induced by morphismp
317- let protocol = SchnorrProof ( morphismp) ;
317+ let protocol = SchnorrProtocol ( morphismp) ;
318318 // Fiat-Shamir wrapper
319319 let domain_sep = b"test-fiat-shamir-pedersen-commitment-DLEQ" ;
320- let mut nizk = NISigmaProtocol :: < SchnorrProof < G > , ShakeCodec < G > , G > :: new ( domain_sep, protocol) ;
320+ let mut nizk = NISigmaProtocol :: < SchnorrProtocol < G > , ShakeCodec < G > , G > :: new ( domain_sep, protocol) ;
321321
322322 // Batchable and compact proofs
323323 let proof_batchable_bytes = nizk. prove_batchable ( & witness, & mut rng) ;
@@ -342,10 +342,10 @@ fn NI_bbs_blind_commitment_computation() {
342342 let ( morphismp, witness) = bbs_blind_commitment_computation :: < G > ( & mut rng) ;
343343
344344 // The SigmaProtocol induced by morphismp
345- let protocol = SchnorrProof ( morphismp) ;
345+ let protocol = SchnorrProtocol ( morphismp) ;
346346 // Fiat-Shamir wrapper
347347 let domain_sep = b"test-fiat-shamir-bbs-blind-commitment-computation" ;
348- let mut nizk = NISigmaProtocol :: < SchnorrProof < G > , ShakeCodec < G > , G > :: new ( domain_sep, protocol) ;
348+ let mut nizk = NISigmaProtocol :: < SchnorrProtocol < G > , ShakeCodec < G > , G > :: new ( domain_sep, protocol) ;
349349
350350 // Batchable and compact proofs
351351 let proof_batchable_bytes = nizk. prove_batchable ( & witness, & mut rng) ;
0 commit comments