mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-04-20 03:01:31 -04:00
35 lines
548 B
C++
35 lines
548 B
C++
/*
|
|
* ShamirMachine.h
|
|
*
|
|
*/
|
|
|
|
#ifndef PROCESSOR_SHAMIRMACHINE_H_
|
|
#define PROCESSOR_SHAMIRMACHINE_H_
|
|
|
|
#include "Tools/ezOptionParser.h"
|
|
|
|
class ShamirMachine
|
|
{
|
|
static ShamirMachine* singleton;
|
|
|
|
protected:
|
|
ez::ezOptionParser opt;
|
|
int nparties;
|
|
|
|
public:
|
|
int threshold;
|
|
|
|
static ShamirMachine& s();
|
|
|
|
ShamirMachine(int argc, const char** argv);
|
|
};
|
|
|
|
template<template<class U> class T>
|
|
class ShamirMachineSpec : ShamirMachine
|
|
{
|
|
public:
|
|
ShamirMachineSpec(int argc, const char** argv);
|
|
};
|
|
|
|
#endif /* PROCESSOR_SHAMIRMACHINE_H_ */
|