Skip to content

Commit

Permalink
plonk: replaced challenge_str map with a vector. addresses #61 (comment)
Browse files Browse the repository at this point in the history
 .
  • Loading branch information
Vesselin Velichkov committed Oct 13, 2022
1 parent 717da05 commit 4bc043c
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,8 @@ libff::Fr<libff::bls12_381_pp> bls12_381_test_vector_transcript_hasher::

// map the index length=0,1...5 to the challenge string=beta,
// gamma, ...; used to print explicitly the challenge string for debug
std::map<size_t, std::string> challenge_str;
challenge_str[0] = "beta";
challenge_str[1] = "gamma";
challenge_str[2] = "alpha";
challenge_str[3] = "zeta";
challenge_str[4] = "nu";
challenge_str[5] = "u";
std::vector<std::string> challenge_str = {
"beta", "gamma", "alpha", "zeta", "nu", "u"};

// find the mathcing index
size_t i = 0;
Expand Down

0 comments on commit 4bc043c

Please sign in to comment.