Clearmatics Libsnark
0.1
C++ library for zkSNARK proofs
libsnark
relations
ram_computations
rams
examples
ram_examples.hpp
Go to the documentation of this file.
1
13
#ifndef RAM_EXAMPLES_HPP_
14
#define RAM_EXAMPLES_HPP_
15
16
#include <
libsnark/relations/ram_computations/rams/ram_params.hpp
>
17
18
namespace
libsnark
19
{
20
21
template
<
typename
ramT>
struct
ram_example
{
22
ram_architecture_params<ramT>
ap
;
23
size_t
boot_trace_size_bound
;
24
size_t
time_bound
;
25
ram_boot_trace<ramT>
boot_trace
;
26
ram_input_tape<ramT>
auxiliary_input
;
27
};
28
32
template
<
typename
ramT>
33
ram_example<ramT>
gen_ram_example_simple
(
34
const
ram_architecture_params<ramT>
&ap,
35
const
size_t
boot_trace_size_bound,
36
const
size_t
time_bound,
37
const
bool
satisfiable =
true
);
38
42
template
<
typename
ramT>
43
ram_example<ramT>
gen_ram_example_complex
(
44
const
ram_architecture_params<ramT>
&ap,
45
const
size_t
boot_trace_size_bound,
46
const
size_t
time_bound,
47
const
bool
satisfiable =
true
);
48
49
}
// namespace libsnark
50
51
#include <
libsnark/relations/ram_computations/rams/examples/ram_examples.tcc
>
52
53
#endif // RAM_EXAMPLES_HPP_
libsnark::ram_input_tape
std::vector< size_t > ram_input_tape
Definition:
ram_params.hpp:55
libsnark::ram_architecture_params
typename ramT::architecture_params_type ram_architecture_params
Definition:
ram_params.hpp:53
libsnark::ram_example::auxiliary_input
ram_input_tape< ramT > auxiliary_input
Definition:
ram_examples.hpp:26
ram_examples.tcc
libsnark::gen_ram_example_simple
ram_example< ramT > gen_ram_example_simple(const ram_architecture_params< ramT > &ap, const size_t boot_trace_size_bound, const size_t time_bound, const bool satisfiable=true)
libsnark
Definition:
accumulation_vector.hpp:18
libsnark::ram_example::time_bound
size_t time_bound
Definition:
ram_examples.hpp:24
libsnark::gen_ram_example_complex
ram_example< ramT > gen_ram_example_complex(const ram_architecture_params< ramT > &ap, const size_t boot_trace_size_bound, const size_t time_bound, const bool satisfiable=true)
libsnark::ram_example::boot_trace
ram_boot_trace< ramT > boot_trace
Definition:
ram_examples.hpp:25
libsnark::ram_example
Definition:
ram_examples.hpp:21
libsnark::memory_store_trace
Definition:
memory_store_trace.hpp:29
libsnark::ram_example::boot_trace_size_bound
size_t boot_trace_size_bound
Definition:
ram_examples.hpp:23
libsnark::ram_example::ap
ram_architecture_params< ramT > ap
Definition:
ram_examples.hpp:22
ram_params.hpp
Generated on Wed Jan 25 2023 11:05:58 for Clearmatics Libsnark by
1.8.17