Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
#include <tool_common.hpp>
Static Public Member Functions | |
template<typename... Args> | |
static int | resolve (const std::string &curve_name, const std::string &snark_name, Args... args) |
Static Protected Member Functions | |
template<typename ppT , typename... Args> | |
static int | resolve_snark (const std::string &snark_name, Args... args) |
Given a class of the form:
template<typename ppT, typename snarkT> class Callee { public: static int execute(std::string &a, ...); };
this class can be used to invoke the correct instantiation of Callee based on curve_name and snark_name strings. E.g.
int r = curve_and_snark_resolver<Callee>("alt-bn128", "groth16", a, ....);
Definition at line 35 of file tool_common.hpp.
|
inlinestatic |
|
inlinestaticprotected |
Definition at line 58 of file tool_common.hpp.