Skip to content

Commit

Permalink
Ran formatting script
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineRondelet committed Apr 22, 2020
1 parent e542466 commit 885896a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libzeth/util_api.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,11 @@ libsnark::accumulation_vector<libff::G1<ppT>> parse_str_accumulation_vector(
for (size_t i = 2; i < res.size(); i += 2) {
// TODO:
// This is BAD => this code is a duplicate of the function
// `hexadecimal_str_to_field_element` Let's re-use the content of the function
// `hexadecimal_str_to_field_element` here. To do this properly this means that
// we need to modify the type of `abc_g1` in the proto file to be a
// repeated G1 element (and not a string) Likewise for the inputs which
// should be changed to repeated field elements
// `hexadecimal_str_to_field_element` Let's re-use the content of the
// function `hexadecimal_str_to_field_element` here. To do this properly
// this means that we need to modify the type of `abc_g1` in the proto
// file to be a repeated G1 element (and not a string) Likewise for the
// inputs which should be changed to repeated field elements
libff::Fq<ppT> x_coordinate =
hexadecimal_str_to_field_element<libff::Fq<ppT>>(res[i]);
libff::Fq<ppT> y_coordinate =
Expand Down

0 comments on commit 885896a

Please sign in to comment.