mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-10 05:57:57 -05:00
33 lines
817 B
C++
33 lines
817 B
C++
#ifndef _Verifier
|
|
#define _Verifier
|
|
|
|
#include "Proof.h"
|
|
|
|
/* Defines the Verifier */
|
|
template <class FD, class S>
|
|
class Verifier
|
|
{
|
|
AddableVector<S> z;
|
|
AddableMatrix<S> t;
|
|
|
|
const Proof& P;
|
|
|
|
public:
|
|
Verifier(const Proof& proof);
|
|
|
|
void Stage_2(const vector<int>& e,
|
|
AddableVector<Ciphertext>& c, octetStream& ciphertexts,
|
|
octetStream& cleartexts,const FHE_PK& pk,bool Diag,bool binary=false);
|
|
|
|
/* This is the non-interactive version using the ROM
|
|
- Creates space for all output values
|
|
- Diag flag mirrors that in Prover
|
|
*/
|
|
void NIZKPoK(AddableVector<Ciphertext>& c,octetStream& ciphertexts,octetStream& cleartexts,
|
|
const FHE_PK& pk,bool Diag,bool binary=false);
|
|
|
|
size_t report_size(ReportType type) { return z.report_size(type) + t.report_size(type); }
|
|
};
|
|
|
|
#endif
|