| 
    Clearmatics Libsnark
    0.1
    
   C++ library for zkSNARK proofs 
   | 
 
#include <knapsack_gadget.hpp>


Public Types | |
| typedef libff::bit_vector | hash_value_type | 
| typedef merkle_authentication_path | merkle_authentication_path_type | 
Public Member Functions | |
| knapsack_CRH_with_bit_out_gadget (protoboard< FieldT > &pb, const size_t input_len, const block_variable< FieldT > &input_block, const digest_variable< FieldT > &output_digest, const std::string &annotation_prefix) | |
| void | generate_r1cs_constraints (const bool enforce_bitness=true) | 
| void | generate_r1cs_witness () | 
  Public Member Functions inherited from libsnark::gadget< FieldT > | |
| gadget (protoboard< FieldT > &pb, const std::string &annotation_prefix) | |
Static Public Member Functions | |
| static size_t | get_digest_len () | 
| static size_t | get_block_len () | 
| static hash_value_type | get_hash (const libff::bit_vector &input) | 
| static void | sample_randomness (const size_t input_len) | 
| static size_t | expected_constraints (const bool enforce_bitness=true) | 
Public Attributes | |
| size_t | input_len | 
| size_t | dimension | 
| pb_linear_combination_array< FieldT > | output | 
| std::shared_ptr< knapsack_CRH_with_field_out_gadget< FieldT > > | hasher | 
| block_variable< FieldT > | input_block | 
| digest_variable< FieldT > | output_digest | 
Additional Inherited Members | |
  Protected Attributes inherited from libsnark::gadget< FieldT > | |
| protoboard< FieldT > & | pb | 
| const std::string | annotation_prefix | 
Definition at line 100 of file knapsack_gadget.hpp.
| typedef libff::bit_vector libsnark::knapsack_CRH_with_bit_out_gadget< FieldT >::hash_value_type | 
Definition at line 103 of file knapsack_gadget.hpp.
| typedef merkle_authentication_path libsnark::knapsack_CRH_with_bit_out_gadget< FieldT >::merkle_authentication_path_type | 
Definition at line 104 of file knapsack_gadget.hpp.
| libsnark::knapsack_CRH_with_bit_out_gadget< FieldT >::knapsack_CRH_with_bit_out_gadget | ( | protoboard< FieldT > & | pb, | 
| const size_t | input_len, | ||
| const block_variable< FieldT > & | input_block, | ||
| const digest_variable< FieldT > & | output_digest, | ||
| const std::string & | annotation_prefix | ||
| ) | 
      
  | 
  static | 
| void libsnark::knapsack_CRH_with_bit_out_gadget< FieldT >::generate_r1cs_constraints | ( | const bool | enforce_bitness = true | ) | 
| void libsnark::knapsack_CRH_with_bit_out_gadget< FieldT >::generate_r1cs_witness | ( | ) | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
| size_t libsnark::knapsack_CRH_with_bit_out_gadget< FieldT >::dimension | 
Definition at line 107 of file knapsack_gadget.hpp.
| std::shared_ptr<knapsack_CRH_with_field_out_gadget<FieldT> > libsnark::knapsack_CRH_with_bit_out_gadget< FieldT >::hasher | 
Definition at line 111 of file knapsack_gadget.hpp.
| block_variable<FieldT> libsnark::knapsack_CRH_with_bit_out_gadget< FieldT >::input_block | 
Definition at line 113 of file knapsack_gadget.hpp.
| size_t libsnark::knapsack_CRH_with_bit_out_gadget< FieldT >::input_len | 
Definition at line 106 of file knapsack_gadget.hpp.
| pb_linear_combination_array<FieldT> libsnark::knapsack_CRH_with_bit_out_gadget< FieldT >::output | 
Definition at line 109 of file knapsack_gadget.hpp.
| digest_variable<FieldT> libsnark::knapsack_CRH_with_bit_out_gadget< FieldT >::output_digest | 
Definition at line 114 of file knapsack_gadget.hpp.
 1.8.17