Skip to content

Commit

Permalink
rename fn
Browse files Browse the repository at this point in the history
  • Loading branch information
plafer committed Feb 21, 2024
1 parent 2071fc4 commit 35742d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion air/src/air/trace_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ impl<E: StarkField> ToElements<E> 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_vec_with_padding(chunk));
result.push(E::from_byte_with_padding(chunk));
}
}

Expand Down
4 changes: 2 additions & 2 deletions air/src/proof/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ impl<E: StarkField> ToElements<E> 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_vec_with_padding(m1));
result.push(E::from_byte_vec_with_padding(m2));
result.push(E::from_byte_with_padding(m1));
result.push(E::from_byte_with_padding(m2));

// convert proof options to elements
result.append(&mut self.options.to_elements());
Expand Down
2 changes: 1 addition & 1 deletion math/src/field/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ pub trait StarkField: FieldElement<BaseField = Self> {
/// 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_vec_with_padding(bytes: &[u8]) -> Self {
fn from_byte_with_padding(bytes: &[u8]) -> Self {
assert!(bytes.len() < Self::ELEMENT_BYTES);

let mut buf = bytes.to_vec();
Expand Down

0 comments on commit 35742d6

Please sign in to comment.