diff --git a/air/src/air/trace_info.rs b/air/src/air/trace_info.rs index d433f3114..6dde88af9 100644 --- a/air/src/air/trace_info.rs +++ b/air/src/air/trace_info.rs @@ -255,7 +255,7 @@ impl ToElements for TraceInfo { // element, and then converting these chunks into field elements. if !self.trace_meta.is_empty() { for chunk in self.trace_meta.chunks(E::ELEMENT_BYTES - 1) { - result.push(E::from_byte_with_padding(chunk)); + result.push(E::from_bytes_with_padding(chunk)); } } diff --git a/air/src/proof/context.rs b/air/src/proof/context.rs index 6c0f7829f..92b28ff65 100644 --- a/air/src/proof/context.rs +++ b/air/src/proof/context.rs @@ -103,8 +103,8 @@ impl ToElements for Context { // convert field modulus bytes into 2 elements let num_modulus_bytes = self.field_modulus_bytes.len(); let (m1, m2) = self.field_modulus_bytes.split_at(num_modulus_bytes / 2); - result.push(E::from_byte_with_padding(m1)); - result.push(E::from_byte_with_padding(m2)); + result.push(E::from_bytes_with_padding(m1)); + result.push(E::from_bytes_with_padding(m2)); // convert proof options to elements result.append(&mut self.options.to_elements()); diff --git a/math/src/field/traits.rs b/math/src/field/traits.rs index 826b90bf4..842f4fe2e 100644 --- a/math/src/field/traits.rs +++ b/math/src/field/traits.rs @@ -279,7 +279,7 @@ pub trait StarkField: FieldElement { /// Panics if /// - the length of `bytes` is greater than the number of bytes needed to encode an element. /// - the value of the bytes is not a valid field element after padding - fn from_byte_with_padding(bytes: &[u8]) -> Self { + fn from_bytes_with_padding(bytes: &[u8]) -> Self { assert!(bytes.len() < Self::ELEMENT_BYTES); let mut buf = bytes.to_vec();