Clearmatics Libsnark
0.1
C++ library for zkSNARK proofs
|
Go to the documentation of this file.
12 #ifndef ACCUMULATION_VECTOR_HPP_
13 #define ACCUMULATION_VECTOR_HPP_
68 template<
typename FieldT>
70 const typename std::vector<FieldT>::const_iterator &it_begin,
71 const typename std::vector<FieldT>::const_iterator &it_end,
72 const size_t offset)
const;
76 std::ostream &
operator<<(std::ostream &out,
const accumulation_vector<T> &v);
79 std::istream &
operator>>(std::istream &in, accumulation_vector<T> &v);
85 #endif // ACCUMULATION_VECTOR_HPP_
std::ostream & operator<<(std::ostream &out, const accumulation_vector< T > &v)
accumulation_vector(T &&first, sparse_vector< T > &&rest)
size_t size_in_bits() const
accumulation_vector()=default
accumulation_vector(T &&first, std::vector< T > &&v)
std::istream & operator>>(std::istream &in, accumulation_vector< T > &v)
accumulation_vector< T > & operator=(const accumulation_vector< T > &other)=default
bool operator==(const accumulation_vector< T > &other) const
accumulation_vector(std::vector< T > &&v)
accumulation_vector< T > accumulate_chunk(const typename std::vector< FieldT >::const_iterator &it_begin, const typename std::vector< FieldT >::const_iterator &it_end, const size_t offset) const
size_t domain_size() const
bool is_fully_accumulated() const