12#ifdef FUZZING_SHOW_INFORMATION
13#define PRINT_BYTESTRING(header, bs) \
15 std::cout << header; \
16 for (const uint8_t& x : bs) { \
17 std::cout << std::hex << std::uppercase << std::setw(2) << std::setfill('0') << static_cast<int>(x); \
19 std::cout << std::endl; \
22#define PRINT_BYTESTRING(header, bs)
27 if (Size == 0 || Size > 1024)
30 std::vector<uint8_t> input_vec(Data, Data + Size);
32#ifdef FUZZING_SHOW_INFORMATION
38 auto output_str = output_bits.get_value();
39 std::vector<uint8_t> circuit_output(output_str.begin(), output_str.end());
41#ifdef FUZZING_SHOW_INFORMATION
47#ifdef FUZZING_SHOW_INFORMATION
51 assert(circuit_output == expected);
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
#define PRINT_BYTESTRING(header, bs)
static bool check(const Builder &circuit)
Check the witness satisifies the circuit.
static byte_array_ct hash(const byte_array_ct &input)
Represents a dynamic array of bytes in-circuit.
Entry point for Barretenberg command-line interface.
std::vector< uint8_t > blake3s(std::vector< uint8_t > const &input)