diff --git a/src/liblelantus/innerproduct_proof_verifier.cpp b/src/liblelantus/innerproduct_proof_verifier.cpp index 2a264858cb..bf96c5bd36 100755 --- a/src/liblelantus/innerproduct_proof_verifier.cpp +++ b/src/liblelantus/innerproduct_proof_verifier.cpp @@ -62,7 +62,7 @@ bool InnerProductProofVerifier::verify_util( return InnerProductProofVerifier(g_p, h_p, u_, p_p, version_).verify_util(proof, itr_l + 1, itr_r + 1, challengeGenerator); } -bool InnerProductProofVerifier::verify_fast(std::size_t n, const Scalar& x, const InnerProductProof& proof, unique_ptr& challengeGenerator) { +bool InnerProductProofVerifier::verify_fast(std::size_t n, const Scalar& x, const InnerProductProof& proof, std::unique_ptr& challengeGenerator) { u_ *= x; P_ += u_ * proof.c_; return verify_fast_util(n, proof, challengeGenerator); diff --git a/src/liblelantus/innerproduct_proof_verifier.h b/src/liblelantus/innerproduct_proof_verifier.h index 03dc38616d..1e0880dae8 100755 --- a/src/liblelantus/innerproduct_proof_verifier.h +++ b/src/liblelantus/innerproduct_proof_verifier.h @@ -17,8 +17,8 @@ class InnerProductProofVerifier { const GroupElement& P, int version); // if(version >= 2) we should pass CHash256 in verify - bool verify(const Scalar& x, const InnerProductProof& proof, unique_ptr& challengeGenerator); - bool verify_fast(std::size_t n, const Scalar& x, const InnerProductProof& proof, unique_ptr& challengeGenerator); + bool verify(const Scalar& x, const InnerProductProof& proof, std::unique_ptr& challengeGenerator); + bool verify_fast(std::size_t n, const Scalar& x, const InnerProductProof& proof, std::unique_ptr& challengeGenerator); private: bool verify_util( @@ -27,7 +27,7 @@ class InnerProductProofVerifier { typename std::vector::const_iterator itr_r, std::unique_ptr& challengeGenerator); - bool verify_fast_util(std::size_t n, const InnerProductProof& proof, unique_ptr& challengeGenerator); + bool verify_fast_util(std::size_t n, const InnerProductProof& proof, std::unique_ptr& challengeGenerator); private: const std::vector& g_; diff --git a/src/liblelantus/lelantus_verifier.cpp b/src/liblelantus/lelantus_verifier.cpp index cd218fe642..bea26beca3 100644 --- a/src/liblelantus/lelantus_verifier.cpp +++ b/src/liblelantus/lelantus_verifier.cpp @@ -213,7 +213,7 @@ bool LelantusVerifier::verify_rangeproof( commitments[0].emplace_back(Cout[i].getValue()); } - std:vector proofs; + std::vector proofs; proofs.reserve(1); // size of batch proofs.emplace_back(bulletproof);