25TEST(boomerang_stdlib_blake2s, graph_description_single_block_plookup)
28 std::string input =
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz01";
29 std::vector<uint8_t> input_v(input.begin(), input.end());
36 EXPECT_EQ(connected_components.size(), 1);
38 EXPECT_EQ(variables_in_one_gate.size(), 0);
50TEST(boomerang_stdlib_blake2s, graph_description_double_block_plookup)
53 std::string input =
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789";
54 std::vector<uint8_t> input_v(input.begin(), input.end());
61 EXPECT_EQ(output.
get_value(), std::vector<uint8_t>(expected.begin(), expected.end()));
65 EXPECT_EQ(connected_components.size(), 1);
67 EXPECT_EQ(variables_in_one_gate.size(), 0);
static byte_array_ct hash(const byte_array_ct &input)
Represents a dynamic array of bytes in-circuit.
std::vector< uint8_t > get_value() const
A helper converting a byte_array into the vector of its uint8_t values.
std::unordered_set< uint32_t > show_variables_in_one_gate(bb::UltraCircuitBuilder &ultra_circuit_builder)
this method returns a final set of variables that were in one gate
std::vector< std::vector< uint32_t > > find_connected_components()
this methond finds all connected components in the graph described by adjacency lists
TEST(boomerang_stdlib_blake2s, graph_description_single_block_plookup)
Test graph description for Blake2s hash with single block input.
std::array< uint8_t, BLAKE2S_OUTBYTES > blake2s(std::vector< uint8_t > const &input)
Entry point for Barretenberg command-line interface.
UltraCircuitBuilder_< UltraExecutionTraceBlocks > UltraCircuitBuilder
StaticAnalyzer_< bb::fr > StaticAnalyzer