Zecale - Reconciling Privacy and Scalability on Smart-Contract Chains  0.5
Reference implementation of the Zecale protocol by Clearmatics
null_hash_gadget.tcc
Go to the documentation of this file.
1 // Copyright (c) 2015-2022 Clearmatics Technologies Ltd
2 //
3 // SPDX-License-Identifier: LGPL-3.0+
4 
5 #ifndef __ZECALE_CIRCUIT_NULL_HASH_GADGET_TCC__
6 #define __ZECALE_CIRCUIT_NULL_HASH_GADGET_TCC__
7 
8 #include "libzecale/circuits/null_hash_gadget.hpp"
9 
10 namespace libzecale
11 {
12 
13 template<typename FieldT>
14 null_hash_gadget<FieldT>::null_hash_gadget(
15  libsnark::protoboard<FieldT> & /* pb */,
16  const libsnark::block_variable<FieldT> & /* input */,
17  const libsnark::digest_variable<FieldT> & /* output */,
18  const std::string & /* annotation_prefix */)
19 {
20 }
21 
22 template<typename FieldT>
23 void null_hash_gadget<FieldT>::generate_r1cs_constraints(
24  const bool /* ensure_output_bitness */)
25 {
26 }
27 
28 template<typename FieldT> void null_hash_gadget<FieldT>::generate_r1cs_witness()
29 {
30 }
31 
32 template<typename FieldT> size_t null_hash_gadget<FieldT>::get_digest_len()
33 {
34  return 0;
35 }
36 
37 } // namespace libzecale
38 
39 #endif // __ZECALE_CIRCUIT_NULL_HASH_GADGET_TCC__