From 5f945a582b9f5163be11a77ca63f16c481a09fe9 Mon Sep 17 00:00:00 2001 From: Philippe Laferriere Date: Wed, 21 Feb 2024 16:45:33 -0500 Subject: [PATCH] fix typo --- air/src/air/trace_info.rs | 2 +- air/src/proof/context.rs | 4 ++-- math/src/field/traits.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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();