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

Public Types

using CK = CommitmentKey< Curve >
 
using Fr = typename Curve::ScalarField
 
using Commitment = typename Curve::AffineElement
 
using GroupElement = typename Curve::Element
 
using Polynomial = bb::Polynomial< Fr >
 

Public Member Functions

void test_commit_to_zero_poly ()
 
void test_commit_sparse_poly ()
 
void test_commit_random_poly ()
 
void test_non_dyadic_srs_size ()
 
void test_batch_commit ()
 
void test_commit_with_start_index ()
 

Static Public Member Functions

static void SetUpTestSuite ()
 
static Commitment commit_naive (const CK &ck, const Polynomial &poly)
 

Detailed Description

template<typename Curve>
class bb::CommitmentKeyTest< Curve >

Definition at line 9 of file commitment_key.test.cpp.

Member Typedef Documentation

◆ CK

template<typename Curve >
using bb::CommitmentKeyTest< Curve >::CK = CommitmentKey<Curve>

Definition at line 11 of file commitment_key.test.cpp.

◆ Commitment

template<typename Curve >
using bb::CommitmentKeyTest< Curve >::Commitment = typename Curve::AffineElement

Definition at line 13 of file commitment_key.test.cpp.

◆ Fr

template<typename Curve >
using bb::CommitmentKeyTest< Curve >::Fr = typename Curve::ScalarField

Definition at line 12 of file commitment_key.test.cpp.

◆ GroupElement

template<typename Curve >
using bb::CommitmentKeyTest< Curve >::GroupElement = typename Curve::Element

Definition at line 14 of file commitment_key.test.cpp.

◆ Polynomial

template<typename Curve >
using bb::CommitmentKeyTest< Curve >::Polynomial = bb::Polynomial<Fr>

Definition at line 15 of file commitment_key.test.cpp.

Member Function Documentation

◆ commit_naive()

template<typename Curve >
static Commitment bb::CommitmentKeyTest< Curve >::commit_naive ( const CK ck,
const Polynomial poly 
)
inlinestatic

Definition at line 20 of file commitment_key.test.cpp.

◆ SetUpTestSuite()

template<typename Curve >
static void bb::CommitmentKeyTest< Curve >::SetUpTestSuite ( )
inlinestatic

Definition at line 17 of file commitment_key.test.cpp.

◆ test_batch_commit()

template<typename Curve >
void bb::CommitmentKeyTest< Curve >::test_batch_commit ( )
inline

Definition at line 83 of file commitment_key.test.cpp.

◆ test_commit_random_poly()

template<typename Curve >
void bb::CommitmentKeyTest< Curve >::test_commit_random_poly ( )
inline

Definition at line 55 of file commitment_key.test.cpp.

◆ test_commit_sparse_poly()

template<typename Curve >
void bb::CommitmentKeyTest< Curve >::test_commit_sparse_poly ( )
inline

Definition at line 41 of file commitment_key.test.cpp.

◆ test_commit_to_zero_poly()

template<typename Curve >
void bb::CommitmentKeyTest< Curve >::test_commit_to_zero_poly ( )
inline

Definition at line 30 of file commitment_key.test.cpp.

◆ test_commit_with_start_index()

template<typename Curve >
void bb::CommitmentKeyTest< Curve >::test_commit_with_start_index ( )
inline

Definition at line 108 of file commitment_key.test.cpp.

◆ test_non_dyadic_srs_size()

template<typename Curve >
void bb::CommitmentKeyTest< Curve >::test_non_dyadic_srs_size ( )
inline

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


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