@@ -21,7 +21,7 @@ use crate::{domains, util::OperationTiming, Transcript};
2121/// `G`, `G1`, and `U` required by the protocol. You can either use [`TriptychParameters::new`] to have these generators
2222/// defined securely for you, or use [`TriptychParameters::new_with_generators`] if your use case requires specific
2323/// values for these.
24- #[ allow ( non_snake_case) ]
24+ #[ expect ( non_snake_case) ]
2525#[ derive( Clone , Eq , PartialEq ) ]
2626pub struct TriptychParameters {
2727 n : u32 ,
@@ -53,7 +53,7 @@ impl TriptychParameters {
5353 ///
5454 /// This function produces group generators `G`, `G1` and `U` for you.
5555 /// If your use case requires specific generators, use [`TriptychParameters::new_with_generators`] instead.
56- #[ allow ( non_snake_case) ]
56+ #[ expect ( non_snake_case) ]
5757 pub fn new ( n : u32 , m : u32 ) -> Result < Self , ParameterError > {
5858 // Use the default base point for `G` (this is arbitrary)
5959 let G = RISTRETTO_BASEPOINT_POINT ;
@@ -89,7 +89,7 @@ impl TriptychParameters {
8989 ///
9090 /// The security of these generators cannot be checked by this function.
9191 /// If you'd rather have the generators securely defined for you, use [`TriptychParameters::new`] instead.
92- #[ allow ( non_snake_case) ]
92+ #[ expect ( non_snake_case) ]
9393 pub fn new_with_generators (
9494 n : u32 ,
9595 m : u32 ,
@@ -199,23 +199,23 @@ impl TriptychParameters {
199199 /// Get the group generator `G` from these [`TriptychParameters`].
200200 ///
201201 /// This is the generator used for defining verification keys.
202- #[ allow ( non_snake_case) ]
202+ #[ expect ( non_snake_case) ]
203203 pub fn get_G ( & self ) -> & RistrettoPoint {
204204 & self . G
205205 }
206206
207207 /// Get the group generator `G1` from these [`TriptychParameters`].
208208 ///
209209 /// This is the generator used for defining auxiliary verification keys.
210- #[ allow ( non_snake_case) ]
210+ #[ expect ( non_snake_case) ]
211211 pub fn get_G1 ( & self ) -> & RistrettoPoint {
212212 & self . G1
213213 }
214214
215215 /// Get the group generator `U` from these [`TriptychParameters`].
216216 ///
217217 /// This is the generator used for defining linking tags.
218- #[ allow ( non_snake_case) ]
218+ #[ expect ( non_snake_case) ]
219219 pub fn get_U ( & self ) -> & RistrettoPoint {
220220 & self . U
221221 }
@@ -237,20 +237,20 @@ impl TriptychParameters {
237237 /// Get the value `N == n**m` from these [`TriptychParameters`].
238238 ///
239239 /// This is the verification key vector size.
240- #[ allow ( non_snake_case) ]
240+ #[ expect ( non_snake_case) ]
241241 pub fn get_N ( & self ) -> u32 {
242242 // This is guaranteed not to overflow
243243 self . n . pow ( self . m )
244244 }
245245
246246 /// Get the value `CommitmentG` from these [`TriptychParameters`].
247- #[ allow ( non_snake_case) ]
247+ #[ expect ( non_snake_case) ]
248248 pub ( crate ) fn get_CommitmentG ( & self ) -> & Vec < RistrettoPoint > {
249249 & self . CommitmentG
250250 }
251251
252252 /// Get the value `CommitmentH` from these [`TriptychParameters`].
253- #[ allow ( non_snake_case) ]
253+ #[ expect ( non_snake_case) ]
254254 pub ( crate ) fn get_CommitmentH ( & self ) -> & RistrettoPoint {
255255 & self . CommitmentH
256256 }
0 commit comments