Skip to content

Commit

Permalink
plonk: removed catching the invalid size exception within the get_has…
Browse files Browse the repository at this point in the history
…h function. the caller must handle it.
  • Loading branch information
Vesselin Velichkov authored and dtebbs committed Oct 26, 2022
1 parent 73ff038 commit 8d6494d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions libsnark/zk_proof_systems/plonk/srs.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,9 @@ template<typename ppT> libff::Fr<ppT> transcript_hasher<ppT>::get_hash()
((buffer_len == length[0]) || (buffer_len == length[1]) ||
(buffer_len == length[2]) || (buffer_len == length[3]) ||
(buffer_len == length[4]) || (buffer_len == length[5]));
try {
if (!b_valid_length) {
throw std::logic_error(
"Error: invalid length of transcript hasher buffer");
}
} catch (const std::logic_error &e) {
std::cout << "Error: " << e.what() << "\n";
if (!b_valid_length) {
throw std::logic_error(
"Error: invalid length of transcript hasher buffer");
}
if (!b_valid_length) {
printf(
Expand Down

0 comments on commit 8d6494d

Please sign in to comment.