Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
fold_stride2.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  bb
 Entry point for Barretenberg command-line interface.
 

Functions

template<typename Fr >
void bb::fold_stride2 (const Polynomial< Fr > &src, Polynomial< Fr > &dst, const size_t begin, const size_t end, const Fr &challenge)
 Stride-2 linear-interpolation fold: dst[k] = src[2k] + challenge * (src[2k+1] - src[2k]) for every output index k in [begin, end).