Definition at line 15 of file split_keypair_cmd.cpp.
◆ base_class
◆ split_keypair_cmd()
zethtool::commands::split_keypair_cmd::split_keypair_cmd |
( |
const std::string & |
subcommand_name, |
|
|
const std::string & |
description |
|
) |
| |
|
inline |
◆ execute_generic()
template<typename ppT , typename snarkT >
int zethtool::commands::split_keypair_cmd::execute_generic |
( |
const global_options & |
| ) |
|
|
inline |
Definition at line 27 of file split_keypair_cmd.cpp.
29 ppT::init_public_params();
30 libff::inhibit_profiling_info =
true;
31 libff::inhibit_profiling_counters =
true;
33 typename snarkT::keypair keypair;
36 snarkT::keypair_read_bytes(keypair, in_s);
41 snarkT::verification_key_write_bytes(keypair.vk, out_s);
46 snarkT::proving_key_write_bytes(keypair.pk, out_s);
◆ initialize_suboptions()
void zethtool::commands::split_keypair_cmd::initialize_suboptions |
( |
boost::program_options::options_description & |
options, |
|
|
boost::program_options::options_description & |
all_options, |
|
|
boost::program_options::positional_options_description & |
pos |
|
) |
| |
|
inlineoverrideprotectedvirtual |
Instantiation can now set up the boost program_options structures.
Implements libtool::subcommand< GlobalOptionsT >.
Definition at line 53 of file split_keypair_cmd.cpp.
60 options.add_options()(
62 po::value<std::string>(),
63 "Verification key file (optional)")(
65 po::value<std::string>(),
66 "Proving key file (optional)");
68 all_options.add(options).add_options()(
69 "keypair-file,k", po::value<std::string>(),
"Keypair file");
70 pos.add(
"keypair-file", 1);
◆ parse_suboptions()
void zethtool::commands::split_keypair_cmd::parse_suboptions |
( |
const boost::program_options::variables_map & |
vm | ) |
|
|
inlineoverrideprotectedvirtual |
Instantiation can record any command-specific information from the parsed variables_map.
Implements libtool::subcommand< GlobalOptionsT >.
Definition at line 73 of file split_keypair_cmd.cpp.
78 if (vm.count(
"keypair-file") == 0) {
79 throw po::error(
"keypair file not specified");
83 vk_file = vm.count(
"vk-file") ? vm[
"vk-file"].as<std::string>() :
"";
84 pk_file = vm.count(
"pk-file") ? vm[
"pk-file"].as<std::string>() :
"";
87 throw po::error(
"no VK or PK file specified");
◆ subcommand_usage()
void zethtool::commands::split_keypair_cmd::subcommand_usage |
( |
const char * |
argv0 | ) |
|
|
inlineoverrideprotectedvirtual |
◆ keypair_file
std::string zethtool::commands::split_keypair_cmd::keypair_file |
|
protected |
◆ pk_file
std::string zethtool::commands::split_keypair_cmd::pk_file |
|
protected |
◆ vk_file
std::string zethtool::commands::split_keypair_cmd::vk_file |
|
protected |
The documentation for this class was generated from the following file: