Clearmatics Libsnark  0.1
C++ library for zkSNARK proofs
gadget.tcc
Go to the documentation of this file.
1 /** @file
2  *****************************************************************************
3  * @author This file is part of libsnark, developed by SCIPR Lab
4  * and contributors (see AUTHORS).
5  * @copyright MIT license (see LICENSE file)
6  *****************************************************************************/
7 
8 #ifndef GADGET_TCC_
9 #define GADGET_TCC_
10 
11 namespace libsnark
12 {
13 
14 template<typename FieldT>
15 gadget<FieldT>::gadget(
16  protoboard<FieldT> &pb, const std::string &annotation_prefix)
17  : pb(pb), annotation_prefix(annotation_prefix)
18 {
19  // Annotations may appear as "" (even if set by the calling code) unless
20  // DEBUG is set. See pb_variable.tcc.
21 #ifdef DEBUG
22  assert(annotation_prefix != "");
23 #endif
24 }
25 
26 } // namespace libsnark
27 #endif // GADGET_TCC_