@@ -7,10 +7,10 @@ use ark_ec::{
7
7
use ark_ff:: { One , PrimeField , Zero } ;
8
8
use ark_serialize:: CanonicalSerialize ;
9
9
use ark_std:: rand:: RngCore ;
10
- use fflonk :: pcs:: PCS ;
10
+ use w3f_pcs :: pcs:: PCS ;
11
11
12
- pub use common :: domain:: Domain ;
13
- use common :: Proof ;
12
+ pub use w3f_plonk_common :: domain:: Domain ;
13
+ use w3f_plonk_common :: Proof ;
14
14
pub use piop:: index;
15
15
16
16
pub use crate :: piop:: { params:: PiopParams , FixedColumnsCommitted , ProverKey , VerifierKey } ;
@@ -24,7 +24,7 @@ pub mod ring_verifier;
24
24
pub type RingProof < F , CS > = Proof < F , CS , RingCommitments < F , <CS as PCS < F > >:: C > , RingEvaluations < F > > ;
25
25
26
26
/// Polynomial Commitment Schemes.
27
- pub use fflonk :: pcs;
27
+ pub use w3f_pcs :: pcs;
28
28
29
29
// Calling the method for a prime-order curve results in an infinite loop.
30
30
pub fn find_complement_point < Curve : SWCurveConfig > ( ) -> Affine < Curve > {
@@ -61,7 +61,7 @@ pub(crate) fn hash_to_curve<F: PrimeField, Curve: SWCurveConfig<BaseField = F>>(
61
61
#[ derive( Clone ) ]
62
62
pub struct ArkTranscript ( ark_transcript:: Transcript ) ;
63
63
64
- impl < F : PrimeField , CS : PCS < F > > common :: transcript:: PlonkTranscript < F , CS > for ArkTranscript {
64
+ impl < F : PrimeField , CS : PCS < F > > w3f_plonk_common :: transcript:: PlonkTranscript < F , CS > for ArkTranscript {
65
65
fn _128_bit_point ( & mut self , label : & ' static [ u8 ] ) -> F {
66
66
self . 0 . challenge ( label) . read_reduce ( )
67
67
}
@@ -91,9 +91,9 @@ mod tests {
91
91
use ark_std:: ops:: Mul ;
92
92
use ark_std:: rand:: Rng ;
93
93
use ark_std:: { end_timer, start_timer, test_rng, UniformRand } ;
94
- use fflonk :: pcs:: kzg:: KZG ;
94
+ use w3f_pcs :: pcs:: kzg:: KZG ;
95
95
96
- use common :: test_helpers:: random_vec;
96
+ use w3f_plonk_common :: test_helpers:: random_vec;
97
97
98
98
use crate :: piop:: FixedColumnsCommitted ;
99
99
use crate :: ring:: { Ring , RingBuilderKey } ;
@@ -122,7 +122,7 @@ mod tests {
122
122
prover_key,
123
123
piop_params. clone ( ) ,
124
124
k,
125
- ArkTranscript :: new ( b"ring-vrf -test" ) ,
125
+ ArkTranscript :: new ( b"w3f- ring-proof -test" ) ,
126
126
) ;
127
127
let t_prove = start_timer ! ( || "Prove" ) ;
128
128
let proof = ring_prover. prove ( secret) ;
@@ -131,7 +131,7 @@ mod tests {
131
131
let ring_verifier = RingVerifier :: init (
132
132
verifier_key,
133
133
piop_params,
134
- ArkTranscript :: new ( b"ring-vrf -test" ) ,
134
+ ArkTranscript :: new ( b"w3f- ring-proof -test" ) ,
135
135
) ;
136
136
let t_verify = start_timer ! ( || "Verify" ) ;
137
137
let res = ring_verifier. verify_ring_proof ( proof, result. into_affine ( ) ) ;
@@ -201,6 +201,6 @@ mod tests {
201
201
202
202
#[ test]
203
203
fn test_ring_proof_id ( ) {
204
- _test_ring_proof :: < fflonk :: pcs:: IdentityCommitment > ( 2usize . pow ( 10 ) ) ;
204
+ _test_ring_proof :: < w3f_pcs :: pcs:: IdentityCommitment > ( 2usize . pow ( 10 ) ) ;
205
205
}
206
206
}
0 commit comments