Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
libzeth
core
multi_exp.hpp
Go to the documentation of this file.
1
// Copyright (c) 2015-2022 Clearmatics Technologies Ltd
2
//
3
// SPDX-License-Identifier: LGPL-3.0+
4
5
#ifndef __ZETH_CORE_MULTI_EXP_HPP__
6
#define __ZETH_CORE_MULTI_EXP_HPP__
7
8
#include "
libzeth/core/include_libff.hpp
"
9
10
namespace
libzeth
11
{
12
13
template
<
typename
FieldT,
typename
GroupT>
14
GroupT
multi_exp
(
15
typename
std::vector<GroupT>::const_iterator gs_start,
16
typename
std::vector<GroupT>::const_iterator gs_end,
17
typename
std::vector<FieldT>::const_iterator fs_start,
18
typename
std::vector<FieldT>::const_iterator fs_end);
19
20
template
<
typename
ppT,
typename
GroupT>
21
GroupT
multi_exp
(
22
const
std::vector<GroupT> &gs,
const
libff::Fr_vector<ppT> &fs);
23
24
}
// namespace libzeth
25
26
#include "
libzeth/core/multi_exp.tcc
"
27
28
#endif // __ZETH_CORE_MULTI_EXP_HPP__
include_libff.hpp
libzeth
Definition:
binary_operation.hpp:15
multi_exp.tcc
libzeth::multi_exp
GroupT multi_exp(typename std::vector< GroupT >::const_iterator gs_start, typename std::vector< GroupT >::const_iterator gs_end, typename std::vector< FieldT >::const_iterator fs_start, typename std::vector< FieldT >::const_iterator fs_end)
Generated on Mon Nov 28 2022 10:29:03 for Zeth - Zerocash on Ethereum by
1.8.17