Files
MP-SPDZ/Protocols/ShamirOptions.h
2024-11-21 13:14:54 +11:00

38 lines
670 B
C++

/*
* ShamirMachine.h
*
*/
#ifndef PROTOCOLS_SHAMIROPTIONS_H_
#define PROTOCOLS_SHAMIROPTIONS_H_
#include "Tools/ezOptionParser.h"
class ShamirOptions
{
public:
static ShamirOptions singleton;
static ShamirOptions& s();
int nparties;
int threshold;
ShamirOptions(int nparties = 3, int threshold = 1);
ShamirOptions(ez::ezOptionParser& opt, int argc, const char** argv);
void set_threshold(ez::ezOptionParser& opt);
};
class ShamirMachine : public ShamirOptions
{
};
template<template<class U> class T>
class ShamirMachineSpec
{
public:
ShamirMachineSpec(int argc, const char** argv);
};
#endif /* PROTOCOLS_SHAMIROPTIONS_H_ */