Zeth - Zerocash on Ethereum  0.8
Reference implementation of the Zeth protocol by Clearmatics
Classes | Functions
main.cpp File Reference
#include "libtool/run.hpp"
#include "zeth_tool/dump_proof_cmd.hpp"
#include "zeth_tool/joinsplit_circuit_cmd.hpp"
#include "zeth_tool/prove_cmd.hpp"
#include "zeth_tool/split_keypair_cmd.hpp"
#include "zeth_tool/tool_common.hpp"
#include "zeth_tool/verify_cmd.hpp"
Include dependency graph for main.cpp:

Go to the source code of this file.

Classes

class  zeth_command
 

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 35 of file main.cpp.

36 {
37  // Create command structures
38  std::map<std::string, zeth_subcommand *> commands{
39  {"verify", verify_cmd},
40  {"prove", prove_cmd},
41  {"dump-proof", dump_proof_cmd},
42  {"joinsplit-circuit", joinsplit_circuit_cmd},
43  {"split-keypair", split_keypair_cmd},
44  };
45 
46  zeth_command cmd;
47  bool verbose = false;
48 
49  // Execute tool_main
50  return libtool::run_command(cmd, verbose, commands, argc, argv);
51 }
Here is the call graph for this function:
commands
Definition: __init__.py:1
zeth_command
Definition: main.cpp:15
zethtool::verify_cmd
zeth_subcommand * verify_cmd
Definition: verify_cmd.cpp:118
zethtool::dump_proof_cmd
zeth_subcommand * dump_proof_cmd
Definition: dump_proof_cmd.cpp:80
zethtool::joinsplit_circuit_cmd
zeth_subcommand * joinsplit_circuit_cmd
Definition: joinsplit_circuit_cmd.cpp:87
zethtool::prove_cmd
zeth_subcommand * prove_cmd
Definition: prove_cmd.cpp:134
zethtool::split_keypair_cmd
zeth_subcommand * split_keypair_cmd
Definition: split_keypair_cmd.cpp:105
libtool::run_command
int run_command(command< GlobalOptionsT > &command, GlobalOptionsT &options, const std::map< std::string, subcommand< GlobalOptionsT > * > &subcommands, int argc, char **argv)