Clearmatics Libsnark  0.1
C++ library for zkSNARK proofs
tinyram_protoboard.tcc
Go to the documentation of this file.
1 /** @file
2  *****************************************************************************
3 
4  Implementation of interfaces for a protoboard for TinyRAM.
5 
6  See tinyram_protoboard.hpp .
7 
8  *****************************************************************************
9  * @author This file is part of libsnark, developed by SCIPR Lab
10  * and contributors (see AUTHORS).
11  * @copyright MIT license (see LICENSE file)
12  *****************************************************************************/
13 
14 #ifndef TINYRAM_PROTOBOARD_TCC_
15 #define TINYRAM_PROTOBOARD_TCC_
16 
17 namespace libsnark
18 {
19 
20 template<typename FieldT>
21 tinyram_protoboard<FieldT>::tinyram_protoboard(
22  const tinyram_architecture_params &ap)
23  : ap(ap)
24 {
25 }
26 
27 template<typename FieldT>
28 tinyram_gadget<FieldT>::tinyram_gadget(
29  tinyram_protoboard<FieldT> &pb, const std::string &annotation_prefix)
30  : gadget<FieldT>(pb, annotation_prefix), pb(pb)
31 {
32 }
33 
34 template<typename FieldT>
35 tinyram_standard_gadget<FieldT>::tinyram_standard_gadget(
36  tinyram_protoboard<FieldT> &pb, const std::string &annotation_prefix)
37  : tinyram_gadget<FieldT>(pb, annotation_prefix)
38 {
39 }
40 
41 } // namespace libsnark
42 
43 #endif // TINYRAM_PROTOBOARD_TCC_