Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::stdlib::field_conversion_tests::stdlib_field_conversion< Builder > Class Template Reference
Inheritance diagram for bb::stdlib::field_conversion_tests::stdlib_field_conversion< Builder >:

Public Types

using Codec = StdlibCodec< field_t< Builder > >
 

Public Member Functions

template<typename T , typename CreateFn >
void check_deserialization_gate_count (CreateFn create_native, uint32_t expected_gates, size_t num_elements=1)
 Helper to test gate counts for deserialization.
 
template<typename T >
void check_conversion (T in, bool valid_circuit=true, bool point_at_infinity=false)
 
template<typename T >
void check_conversion_iterable (T x)
 

Detailed Description

template<typename Builder>
class bb::stdlib::field_conversion_tests::stdlib_field_conversion< Builder >

Definition at line 16 of file field_conversion.test.cpp.

Member Typedef Documentation

◆ Codec

Member Function Documentation

◆ check_conversion()

template<typename Builder >
template<typename T >
void bb::stdlib::field_conversion_tests::stdlib_field_conversion< Builder >::check_conversion ( in,
bool  valid_circuit = true,
bool  point_at_infinity = false 
)
inline

Definition at line 51 of file field_conversion.test.cpp.

◆ check_conversion_iterable()

template<typename Builder >
template<typename T >
void bb::stdlib::field_conversion_tests::stdlib_field_conversion< Builder >::check_conversion_iterable ( x)
inline

Definition at line 66 of file field_conversion.test.cpp.

◆ check_deserialization_gate_count()

template<typename Builder >
template<typename T , typename CreateFn >
void bb::stdlib::field_conversion_tests::stdlib_field_conversion< Builder >::check_deserialization_gate_count ( CreateFn  create_native,
uint32_t  expected_gates,
size_t  num_elements = 1 
)
inline

Helper to test gate counts for deserialization.

Parameters
create_nativeFunction that creates a native value to serialize
expected_gatesExpected gate count (excluding base gates)
num_elementsNumber of elements to deserialize (defaults to 1)

Definition at line 27 of file field_conversion.test.cpp.


The documentation for this class was generated from the following file: