Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
translator.fuzzer.hpp File Reference

Contains common procedures used by the circuit builder fuzzer and the composer fuzzer. More...

Go to the source code of this file.

Typedefs

using Fr = curve::BN254::ScalarField
 
using Fq = curve::BN254::BaseField
 
using G1 = curve::BN254::AffineElement
 

Functions

uint256_t read_uint256 (const uint8_t *data, size_t buffer_size=32)
 
std::vector< ECCVMOperationparse_operations (const unsigned char *data, size_t size)
 Parse raw operations for ECCOpQueue from the data stream.
 
std::optional< std::tuple< Fq, Fq, std::shared_ptr< ECCOpQueue > > > parse_and_construct_opqueue (const unsigned char *data, size_t size)
 Try to parse out the batching and evaluating challenges and then the ECCOpQueue from the data.
 

Detailed Description

Contains common procedures used by the circuit builder fuzzer and the composer fuzzer.

Author
Rumata888
Date
2024-02-25

Definition in file translator.fuzzer.hpp.

Typedef Documentation

◆ Fq

Definition at line 21 of file translator.fuzzer.hpp.

◆ Fr

Definition at line 20 of file translator.fuzzer.hpp.

◆ G1

Definition at line 22 of file translator.fuzzer.hpp.

Function Documentation

◆ parse_and_construct_opqueue()

std::optional< std::tuple< Fq, Fq, std::shared_ptr< ECCOpQueue > > > parse_and_construct_opqueue ( const unsigned char *  data,
size_t  size 
)

Try to parse out the batching and evaluating challenges and then the ECCOpQueue from the data.

Parameters
datapointer to the buffer
sizesize of the buffer
Returns
std::optional<std::tuple<Fq, Fq, std::shared_ptr<ECCOpQueue>>>

Definition at line 68 of file translator.fuzzer.hpp.

◆ parse_operations()

std::vector< ECCVMOperation > parse_operations ( const unsigned char *  data,
size_t  size 
)

Parse raw operations for ECCOpQueue from the data stream.

Parameters
datapointer to data
sizesize in bytes
Returns
std::vector<ECCVMOperation>

Definition at line 46 of file translator.fuzzer.hpp.

◆ read_uint256()

uint256_t read_uint256 ( const uint8_t *  data,
size_t  buffer_size = 32 
)

Definition at line 26 of file translator.fuzzer.hpp.