Skip to content

Commit

Permalink
bugfix: StarkProof is not always the last element in a serialization …
Browse files Browse the repository at this point in the history
…buffer

This prevents other datastructure to be serialized in the same buffer,
which happen naturally for structs with additional field elements.
  • Loading branch information
hackaugusto committed Dec 18, 2023
1 parent 2921a2e commit 66c9731
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions air/src/proof/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,6 @@ impl Deserializable for StarkProof {
fri_proof: FriProof::read_from(source)?,
pow_nonce: source.read_u64()?,
};
if source.has_more_bytes() {
return Err(DeserializationError::UnconsumedBytes);
}
Ok(proof)
}
}
Expand Down

0 comments on commit 66c9731

Please sign in to comment.