Skip to content

Commit

Permalink
266 change an assert in kzg (#267)
Browse files Browse the repository at this point in the history
* Change size to degree in assert of kzg.

* Change an assert in KZG.
  • Loading branch information
martun authored Jan 8, 2024
1 parent ebac50d commit b7f14ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/nil/crypto3/zk/commitments/polynomial/kzg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ namespace nil {

std::vector<std::uint8_t> result = {};
for (std::size_t i = 0; i < this->_polys[index].size(); ++i) {
BOOST_ASSERT(this->_polys[index][i].size() <= _params.commitment_key.size());
BOOST_ASSERT(this->_polys[index][i].degree() <= _params.commitment_key.size());
auto single_commitment = nil::crypto3::zk::algorithms::commit_one<KZGScheme>(_params, this->_polys[index][i]);
this->_ind_commitments[index].push_back(single_commitment);
auto single_commitment_bytes = KZGScheme::serializer::point_to_octets(single_commitment);
Expand Down

0 comments on commit b7f14ca

Please sign in to comment.