Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aztec/src/utils/array/collapse.nr
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub fn collapse<T, let N: u32>(input: [Option<T>; N]) -> BoundedVec<T, N>
where
T: Eq,
{
// Computing the collpased BoundedVec would result in a very large number of constraints, since we'd need to loop
// Computing the collapsed BoundedVec would result in a very large number of constraints, since we'd need to loop
// over the input array and conditionally write to a dynamic vec index, which is a very unfriendly pattern to the
// proving backend.
// Instead, we use an unconstrained function to produce the final collapsed array, along with some hints, and then
Expand Down