diff --git a/halo2_gadgets/src/sinsemilla/chip/hash_to_point.rs b/halo2_gadgets/src/sinsemilla/chip/hash_to_point.rs index cda643417..8e09a572e 100644 --- a/halo2_gadgets/src/sinsemilla/chip/hash_to_point.rs +++ b/halo2_gadgets/src/sinsemilla/chip/hash_to_point.rs @@ -18,9 +18,12 @@ use pasta_curves::{arithmetic::CurveAffine, pallas}; use std::ops::Deref; /// `EccPointQ` can hold either a public or a private ECC Point +/// (this structure is only used in tests) #[derive(Debug, Clone)] pub enum EccPointQ<'a> { + #[allow(dead_code)] PublicPoint(pallas::Affine), + #[allow(dead_code)] PrivatePoint(&'a NonIdentityEccPoint), } diff --git a/halo2_gadgets/src/sinsemilla/primitives.rs b/halo2_gadgets/src/sinsemilla/primitives.rs index 215c09ff9..4721b66a2 100644 --- a/halo2_gadgets/src/sinsemilla/primitives.rs +++ b/halo2_gadgets/src/sinsemilla/primitives.rs @@ -347,7 +347,7 @@ mod tests { let domain = CommitDomain::new("z.cash:ZSA-NoteCommit"); - let mut os_rng = OsRng::default(); + let mut os_rng = OsRng; let msg: Vec = (0..36).map(|_| os_rng.gen::()).collect(); let rcm = pallas::Scalar::random(&mut os_rng);