mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-05-13 03:00:24 -04:00
38 lines
667 B
C++
38 lines
667 B
C++
/*
|
|
* ShamirMachine.h
|
|
*
|
|
*/
|
|
|
|
#ifndef MACHINES_SHAMIRMACHINE_H_
|
|
#define MACHINES_SHAMIRMACHINE_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 /* MACHINES_SHAMIRMACHINE_H_ */
|