#include "libzeth/core/include_libsnark.hpp"
#include "libzeth/mpc/groth16/mpc_hash.hpp"
#include "mpc_subcommand.hpp"
#include <boost/program_options.hpp>
#include <fstream>
#include <map>
#include <string>
#include <vector>
Go to the source code of this file.
◆ mpc_main()
Main entry point into the mpc command for a given circuit.
Definition at line 43 of file mpc_common.cpp.
49 libzeth::defaults::pp::init_public_params();
◆ read_from_file()
template<typename ReadableT >
ReadableT read_from_file |
( |
const std::string & |
file_name | ) |
|
|
inline |
Definition at line 26 of file mpc_common.hpp.
28 std::ifstream in(file_name, std::ios_base::binary | std::ios_base::in);
30 std::ios_base::eofbit | std::ios_base::badbit | std::ios_base::failbit);
31 return ReadableT::read(in);
◆ read_from_file_and_hash()
template<typename ReadableT >
ReadableT read_from_file_and_hash |
( |
const std::string & |
file_name, |
|
|
libzeth::mpc_hash_t |
out_hash |
|
) |
| |
|
inline |
Definition at line 38 of file mpc_common.hpp.
41 std::ifstream inf(file_name, std::ios_base::binary | std::ios_base::in);
44 std::ios_base::eofbit | std::ios_base::badbit | std::ios_base::failbit);
45 ReadableT v = ReadableT::read(in);
46 in.get_hash(out_hash);
◆ mpc_create_keypair_cmd
◆ mpc_dummy_phase2_cmd
◆ mpc_linear_combination_cmd
◆ mpc_phase2_begin_cmd
◆ mpc_phase2_contribute_cmd
◆ mpc_phase2_verify_contribution_cmd
◆ mpc_phase2_verify_transcript_cmd