diff --git a/ff/src/fields/field_hashers/expander/mod.rs b/ff/src/fields/field_hashers/expander/mod.rs index dc177bc14..0430623be 100644 --- a/ff/src/fields/field_hashers/expander/mod.rs +++ b/ff/src/fields/field_hashers/expander/mod.rs @@ -19,7 +19,7 @@ const LONG_DST_PREFIX: [u8; 17] = [ ]; -pub(super) struct DST(pub arrayvec::ArrayVec); +pub(super) struct DST(arrayvec::ArrayVec); impl DST { pub fn new_fixed(dst: &[u8]) -> DST { @@ -91,7 +91,8 @@ impl Expander for ExpanderXof { let lib_str = (n as u16).to_be_bytes(); xofer.update(&lib_str); - self.update_dst_prime(&mut xofer); + DST::new_xof::(self.dst.as_ref(), self.k).update(&mut xofer); + // self.update_dst_prime(&mut xofer); xofer.finalize_boxed(n).to_vec() } }