Ensure ProofVerifier cannot be accidentally copied.

This commit is contained in:
Sean Bowe 2016-12-06 18:42:31 -07:00
parent bc59f53722
commit 53dc6a41eb
1 changed files with 6 additions and 0 deletions

View File

@ -244,6 +244,12 @@ private:
ProofVerifier(bool perform_verification) : perform_verification(perform_verification) { }
public:
// ProofVerifier should never be copied
ProofVerifier(const ProofVerifier&) = delete;
ProofVerifier& operator=(const ProofVerifier&) = delete;
ProofVerifier(ProofVerifier&&);
ProofVerifier& operator=(ProofVerifier&&);
// Creates a verification context that strictly verifies
// all proofs using libsnark's API.
static ProofVerifier Strict();