Skip to content

Commit

Permalink
optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqiNs committed Feb 27, 2025
1 parent eae2ab4 commit aa26b7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ G2Vec Filter::keygen(const FilterPP& pp, const FilterMsk& msk, const VecOrMat& y
}, y);

// Raise the vector to g2 and return.
return pp.pairing_group->Gp->g2_raise(FpVec{Fp(1), digest_sum});
return pp.pairing_group->Gp->g2_raise(FpVec{beta, pp.pairing_group->Zp->mul(digest_sum, beta)});
}

// Generate the hash of the input y vector.
Expand Down

0 comments on commit aa26b7a

Please sign in to comment.