@@ -7,7 +7,7 @@ use crate::tests::test_utils::{
77 bbs_blind_commitment_computation, discrete_logarithm, dleq, pedersen_commitment,
88 pedersen_commitment_dleq,
99} ;
10- use crate :: { codec:: ShakeCodec , schnorr_protocol:: SchnorrProtocol } ;
10+ use crate :: { codec:: ShakeCodec , schnorr_protocol:: SchnorrProof } ;
1111
1212/// This part tests the functioning of morphisms
1313/// as well as the implementation of LinearRelation
@@ -69,17 +69,17 @@ fn test_bbs_blind_commitment_computation() {
6969}
7070
7171/// This part tests the implementation of the SigmaProtocol trait for the
72- /// SchnorrProtocol structure as well as the Fiat-Shamir NISigmaProtocol transform
72+ /// SchnorrProof structure as well as the Fiat-Shamir NISigmaProtocol transform
7373#[ test]
7474fn noninteractive_discrete_logarithm ( ) {
7575 let mut rng = OsRng ;
7676 let ( morphismp, witness) = discrete_logarithm ( Scalar :: random ( & mut rng) ) ;
7777
7878 // The SigmaProtocol induced by morphismp
79- let protocol = SchnorrProtocol :: from ( morphismp) ;
79+ let protocol = SchnorrProof :: from ( morphismp) ;
8080 // Fiat-Shamir wrapper
8181 let domain_sep = b"test-fiat-shamir-schnorr" ;
82- let nizk = NISigmaProtocol :: < SchnorrProtocol < G > , ShakeCodec < G > > :: new ( domain_sep, protocol) ;
82+ let nizk = NISigmaProtocol :: < SchnorrProof < G > , ShakeCodec < G > > :: new ( domain_sep, protocol) ;
8383
8484 // Batchable and compact proofs
8585 let proof_batchable_bytes = nizk. prove_batchable ( & witness, & mut rng) . unwrap ( ) ;
@@ -103,10 +103,10 @@ fn noninteractive_dleq() {
103103 let ( morphismp, witness) = dleq ( Scalar :: random ( & mut rng) , G :: random ( & mut rng) ) ;
104104
105105 // The SigmaProtocol induced by morphismp
106- let protocol = SchnorrProtocol :: from ( morphismp) ;
106+ let protocol = SchnorrProof :: from ( morphismp) ;
107107 // Fiat-Shamir wrapper
108108 let domain_sep = b"test-fiat-shamir-DLEQ" ;
109- let nizk = NISigmaProtocol :: < SchnorrProtocol < G > , ShakeCodec < G > > :: new ( domain_sep, protocol) ;
109+ let nizk = NISigmaProtocol :: < SchnorrProof < G > , ShakeCodec < G > > :: new ( domain_sep, protocol) ;
110110
111111 // Batchable and compact proofs
112112 let proof_batchable_bytes = nizk. prove_batchable ( & witness, & mut rng) . unwrap ( ) ;
@@ -134,10 +134,10 @@ fn noninteractive_pedersen_commitment() {
134134 ) ;
135135
136136 // The SigmaProtocol induced by morphismp
137- let protocol = SchnorrProtocol :: from ( morphismp) ;
137+ let protocol = SchnorrProof :: from ( morphismp) ;
138138 // Fiat-Shamir wrapper
139139 let domain_sep = b"test-fiat-shamir-pedersen-commitment" ;
140- let nizk = NISigmaProtocol :: < SchnorrProtocol < G > , ShakeCodec < G > > :: new ( domain_sep, protocol) ;
140+ let nizk = NISigmaProtocol :: < SchnorrProof < G > , ShakeCodec < G > > :: new ( domain_sep, protocol) ;
141141
142142 // Batchable and compact proofs
143143 let proof_batchable_bytes = nizk. prove_batchable ( & witness, & mut rng) . unwrap ( ) ;
@@ -172,10 +172,10 @@ fn noninteractive_pedersen_commitment_dleq() {
172172 ) ;
173173
174174 // The SigmaProtocol induced by morphismp
175- let protocol = SchnorrProtocol :: from ( morphismp) ;
175+ let protocol = SchnorrProof :: from ( morphismp) ;
176176 // Fiat-Shamir wrapper
177177 let domain_sep = b"test-fiat-shamir-pedersen-commitment-DLEQ" ;
178- let nizk = NISigmaProtocol :: < SchnorrProtocol < G > , ShakeCodec < G > > :: new ( domain_sep, protocol) ;
178+ let nizk = NISigmaProtocol :: < SchnorrProof < G > , ShakeCodec < G > > :: new ( domain_sep, protocol) ;
179179
180180 // Batchable and compact proofs
181181 let proof_batchable_bytes = nizk. prove_batchable ( & witness, & mut rng) . unwrap ( ) ;
@@ -211,10 +211,10 @@ fn noninteractive_bbs_blind_commitment_computation() {
211211 ) ;
212212
213213 // The SigmaProtocol induced by morphismp
214- let protocol = SchnorrProtocol :: from ( morphismp) ;
214+ let protocol = SchnorrProof :: from ( morphismp) ;
215215 // Fiat-Shamir wrapper
216216 let domain_sep = b"test-fiat-shamir-bbs-blind-commitment-computation" ;
217- let nizk = NISigmaProtocol :: < SchnorrProtocol < G > , ShakeCodec < G > > :: new ( domain_sep, protocol) ;
217+ let nizk = NISigmaProtocol :: < SchnorrProof < G > , ShakeCodec < G > > :: new ( domain_sep, protocol) ;
218218
219219 // Batchable and compact proofs
220220 let proof_batchable_bytes = nizk. prove_batchable ( & witness, & mut rng) . unwrap ( ) ;
0 commit comments