1 // Copyright (c) 2015-2022 Clearmatics Technologies Ltd
3 // SPDX-License-Identifier: LGPL-3.0+
5 #ifndef __ZECALE_CIRCUIT_NULL_HASH_GADGET_TCC__
6 #define __ZECALE_CIRCUIT_NULL_HASH_GADGET_TCC__
8 #include "libzecale/circuits/null_hash_gadget.hpp"
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 */)
22 template<typename FieldT>
23 void null_hash_gadget<FieldT>::generate_r1cs_constraints(
24 const bool /* ensure_output_bitness */)
28 template<typename FieldT> void null_hash_gadget<FieldT>::generate_r1cs_witness()
32 template<typename FieldT> size_t null_hash_gadget<FieldT>::get_digest_len()
37 } // namespace libzecale
39 #endif // __ZECALE_CIRCUIT_NULL_HASH_GADGET_TCC__