Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
straus_lookup_table.test.cpp File Reference

Go to the source code of this file.

Classes

class  StrausLookupTableTest< Builder >
 

Typedefs

using CircuitTypes = ::testing::Types< bb::UltraCircuitBuilder, bb::MegaCircuitBuilder >
 

Functions

 TYPED_TEST_SUITE (StrausLookupTableTest, CircuitTypes)
 
 TYPED_TEST (StrausLookupTableTest, TestTableConstuction)
 Test table construction.
 
 TYPED_TEST (StrausLookupTableTest, TestTableRead)
 Test reading from lookup table.
 
 TYPED_TEST (StrausLookupTableTest, TestWithProvidedHints)
 Test with provided hints.
 
 TYPED_TEST (StrausLookupTableTest, TestInfinityBasePoint)
 Test with point at infinity as base point.
 
 TYPED_TEST (StrausLookupTableTest, ZeroIndexTable)
 

Typedef Documentation

◆ CircuitTypes

Definition at line 29 of file straus_lookup_table.test.cpp.

Function Documentation

◆ TYPED_TEST() [1/5]

TYPED_TEST ( StrausLookupTableTest  ,
TestInfinityBasePoint   
)

Test with point at infinity as base point.

Definition at line 163 of file straus_lookup_table.test.cpp.

◆ TYPED_TEST() [2/5]

TYPED_TEST ( StrausLookupTableTest  ,
TestTableConstuction   
)

Test table construction.

Definition at line 39 of file straus_lookup_table.test.cpp.

◆ TYPED_TEST() [3/5]

TYPED_TEST ( StrausLookupTableTest  ,
TestTableRead   
)

Test reading from lookup table.

Definition at line 67 of file straus_lookup_table.test.cpp.

◆ TYPED_TEST() [4/5]

TYPED_TEST ( StrausLookupTableTest  ,
TestWithProvidedHints   
)

Test with provided hints.

Definition at line 111 of file straus_lookup_table.test.cpp.

◆ TYPED_TEST() [5/5]

TYPED_TEST ( StrausLookupTableTest  ,
ZeroIndexTable   
)

When table_index = 0 and all the wires contributing to the lookup term are zero, the batched denominator term in the log derivative lookup relation is equal to gamma (it is independent of beta), and a malicious prover could inject a fake row anywhere in the trace balancing the lookup. This test shows this bug is not possible anymore because tables are indexed from 1.

Definition at line 206 of file straus_lookup_table.test.cpp.

◆ TYPED_TEST_SUITE()

TYPED_TEST_SUITE ( StrausLookupTableTest  ,
CircuitTypes   
)