chore: update crate versions, dependencies, and CHANGELOG

This commit is contained in:
Bobbin Threadbare
2023-03-24 14:58:19 -07:00
parent bf15e1331a
commit a58922756a
6 changed files with 17 additions and 9 deletions

View File

@@ -290,7 +290,7 @@ where
let digest = if Felt::IS_CANONICAL {
blake3::hash(E::elements_as_bytes(elements))
} else {
let base_elements = E::as_base_elements(elements);
let base_elements = E::slice_as_base_elements(elements);
let blen = base_elements.len() << 3;
let mut bytes = unsafe { uninit_vector(blen) };

View File

@@ -212,7 +212,7 @@ impl ElementHasher for Rpo256 {
fn hash_elements<E: FieldElement<BaseField = Self::BaseField>>(elements: &[E]) -> Self::Digest {
// convert the elements into a list of base field elements
let elements = E::as_base_elements(elements);
let elements = E::slice_as_base_elements(elements);
// initialize state to all zeros, except for the first element of the capacity part, which
// is set to 1 if the number of elements is not a multiple of RATE_WIDTH.