Skip to content

Commit

Permalink
use const reference for rp
Browse files Browse the repository at this point in the history
  • Loading branch information
gogoex committed Oct 16, 2024
1 parent a22bc8e commit 5482653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blsct/external_api/blsct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ BlsctBoolRetVal* verify_range_proofs(

std::vector<bulletproofs::RangeProofWithSeed<Mcl>> range_proof_w_seeds;

for(auto rp: *range_proofs) {
for(const auto& rp: *range_proofs) {
auto rp_w_seed = bulletproofs::RangeProofWithSeed<Mcl>(rp);
range_proof_w_seeds.push_back(rp_w_seed);
}
Expand Down

0 comments on commit 5482653

Please sign in to comment.