Skip to content

Commit

Permalink
Namespace fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFeickert committed Jul 12, 2021
1 parent 8529e7d commit a2659a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/liblelantus/innerproduct_proof_verifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>& challengeGenerator) {
bool InnerProductProofVerifier::verify_fast(std::size_t n, const Scalar& x, const InnerProductProof& proof, std::unique_ptr<ChallengeGenerator>& challengeGenerator) {
u_ *= x;
P_ += u_ * proof.c_;
return verify_fast_util(n, proof, challengeGenerator);
Expand Down
6 changes: 3 additions & 3 deletions src/liblelantus/innerproduct_proof_verifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>& challengeGenerator);
bool verify_fast(std::size_t n, const Scalar& x, const InnerProductProof& proof, unique_ptr<ChallengeGenerator>& challengeGenerator);
bool verify(const Scalar& x, const InnerProductProof& proof, std::unique_ptr<ChallengeGenerator>& challengeGenerator);
bool verify_fast(std::size_t n, const Scalar& x, const InnerProductProof& proof, std::unique_ptr<ChallengeGenerator>& challengeGenerator);

private:
bool verify_util(
Expand All @@ -27,7 +27,7 @@ class InnerProductProofVerifier {
typename std::vector<GroupElement>::const_iterator itr_r,
std::unique_ptr<ChallengeGenerator>& challengeGenerator);

bool verify_fast_util(std::size_t n, const InnerProductProof& proof, unique_ptr<ChallengeGenerator>& challengeGenerator);
bool verify_fast_util(std::size_t n, const InnerProductProof& proof, std::unique_ptr<ChallengeGenerator>& challengeGenerator);

private:
const std::vector<GroupElement>& g_;
Expand Down
2 changes: 1 addition & 1 deletion src/liblelantus/lelantus_verifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ bool LelantusVerifier::verify_rangeproof(
commitments[0].emplace_back(Cout[i].getValue());
}

std:vector<RangeProof> proofs;
std::vector<RangeProof> proofs;
proofs.reserve(1); // size of batch
proofs.emplace_back(bulletproof);

Expand Down

0 comments on commit a2659a4

Please sign in to comment.