From 4bc043cd8a2fc211b756d3e9c675c984e33f785d Mon Sep 17 00:00:00 2001 From: Vesselin Velichkov Date: Tue, 13 Sep 2022 08:49:02 +0100 Subject: [PATCH] plonk: replaced challenge_str map with a vector. addresses https://github.com/clearmatics/libsnark/pull/61#discussion_r968600750 . --- .../tests/bls12_381_test_vector_transcript_hasher.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/libsnark/zk_proof_systems/plonk/tests/bls12_381_test_vector_transcript_hasher.cpp b/libsnark/zk_proof_systems/plonk/tests/bls12_381_test_vector_transcript_hasher.cpp index 043d1bd05..8e3deae8b 100644 --- a/libsnark/zk_proof_systems/plonk/tests/bls12_381_test_vector_transcript_hasher.cpp +++ b/libsnark/zk_proof_systems/plonk/tests/bls12_381_test_vector_transcript_hasher.cpp @@ -123,13 +123,8 @@ libff::Fr 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 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 challenge_str = { + "beta", "gamma", "alpha", "zeta", "nu", "u"}; // find the mathcing index size_t i = 0;