|
Clearmatics Libsnark
0.1
C++ library for zkSNARK proofs
|
#include <ra_memory.hpp>


Public Member Functions | |
| ra_memory (const size_t num_addresses, const size_t value_size) | |
| ra_memory (const size_t num_addresses, const size_t value_size, const std::vector< size_t > &contents_as_vector) | |
| ra_memory (const size_t num_addresses, const size_t value_size, const memory_contents &contents) | |
| size_t | get_value (const size_t address) const |
| void | set_value (const size_t address, const size_t value) |
Public Member Functions inherited from libsnark::memory_interface | |
| memory_interface (const size_t num_addresses, const size_t value_size) | |
| memory_interface (const size_t num_addresses, const size_t value_size, const std::vector< size_t > &contents_as_vector) | |
| memory_interface (const size_t num_addresses, const size_t value_size, const memory_contents &contents) | |
Public Attributes | |
| memory_contents | contents |
Public Attributes inherited from libsnark::memory_interface | |
| size_t | num_addresses |
| size_t | value_size |
A random-access memory maintains the memory's contents via a map (from addresses to values).
Definition at line 24 of file ra_memory.hpp.
| libsnark::ra_memory::ra_memory | ( | const size_t | num_addresses, |
| const size_t | value_size | ||
| ) |
Definition at line 20 of file ra_memory.cpp.
| libsnark::ra_memory::ra_memory | ( | const size_t | num_addresses, |
| const size_t | value_size, | ||
| const std::vector< size_t > & | contents_as_vector | ||
| ) |
Definition at line 25 of file ra_memory.cpp.
| libsnark::ra_memory::ra_memory | ( | const size_t | num_addresses, |
| const size_t | value_size, | ||
| const memory_contents & | contents | ||
| ) |
Definition at line 37 of file ra_memory.cpp.
|
virtual |
|
virtual |
Implements libsnark::memory_interface.
Definition at line 52 of file ra_memory.cpp.
| memory_contents libsnark::ra_memory::contents |
Definition at line 27 of file ra_memory.hpp.
1.8.17