nil::crypto3::zk::snark::set_commitment_accumulator< Hash > Class Template Reference

#include <set_commitment.hpp>

+ Collaboration diagram for nil::crypto3::zk::snark::set_commitment_accumulator< Hash >:

Public Member Functions

void add (const std::vector< bool > &value)
 
void add (const std::vector< bool > &value)
 
set_commitment get_commitment () const
 
set_commitment get_commitment () const
 
set_membership_proof get_membership_proof (const std::vector< bool > &value) const
 
set_membership_proof get_membership_proof (const std::vector< bool > &value) const
 
bool is_in_set (const std::vector< bool > &value) const
 
bool is_in_set (const std::vector< bool > &value) const
 
 set_commitment_accumulator (const std::size_t max_entries, const std::size_t value_size=0)
 
 set_commitment_accumulator (const std::size_t max_entries, const std::size_t value_size=0)
 

Public Attributes

std::size_t depth
 
std::size_t digest_size
 
std::size_t value_size
 

Constructor & Destructor Documentation

◆ set_commitment_accumulator() [1/2]

template<typename Hash >
nil::crypto3::zk::snark::set_commitment_accumulator< Hash >::set_commitment_accumulator ( const std::size_t  max_entries,
const std::size_t  value_size = 0 
)
inline

◆ set_commitment_accumulator() [2/2]

template<typename Hash >
nil::crypto3::zk::snark::set_commitment_accumulator< Hash >::set_commitment_accumulator ( const std::size_t  max_entries,
const std::size_t  value_size = 0 
)
inline

Member Function Documentation

◆ add() [1/2]

template<typename Hash >
void nil::crypto3::zk::snark::set_commitment_accumulator< Hash >::add ( const std::vector< bool > &  value)
inline

◆ add() [2/2]

template<typename Hash >
void nil::crypto3::zk::snark::set_commitment_accumulator< Hash >::add ( const std::vector< bool > &  value)
inline

◆ get_commitment() [1/2]

template<typename Hash >
set_commitment nil::crypto3::zk::snark::set_commitment_accumulator< Hash >::get_commitment ( ) const
inline

◆ get_commitment() [2/2]

template<typename Hash >
set_commitment nil::crypto3::zk::snark::set_commitment_accumulator< Hash >::get_commitment ( ) const
inline

◆ get_membership_proof() [1/2]

template<typename Hash >
set_membership_proof nil::crypto3::zk::snark::set_commitment_accumulator< Hash >::get_membership_proof ( const std::vector< bool > &  value) const
inline

◆ get_membership_proof() [2/2]

template<typename Hash >
set_membership_proof nil::crypto3::zk::snark::set_commitment_accumulator< Hash >::get_membership_proof ( const std::vector< bool > &  value) const
inline

◆ is_in_set() [1/2]

template<typename Hash >
bool nil::crypto3::zk::snark::set_commitment_accumulator< Hash >::is_in_set ( const std::vector< bool > &  value) const
inline

◆ is_in_set() [2/2]

template<typename Hash >
bool nil::crypto3::zk::snark::set_commitment_accumulator< Hash >::is_in_set ( const std::vector< bool > &  value) const
inline

Member Data Documentation

◆ depth

template<typename Hash >
std::size_t nil::crypto3::zk::snark::set_commitment_accumulator< Hash >::depth

◆ digest_size

template<typename Hash >
std::size_t nil::crypto3::zk::snark::set_commitment_accumulator< Hash >::digest_size

◆ value_size

template<typename Hash >
std::size_t nil::crypto3::zk::snark::set_commitment_accumulator< Hash >::value_size

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