mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-04-20 03:01:31 -04:00
38 lines
670 B
C++
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_ */
|