Zeth - Zerocash on Ethereum  0.8
Reference implementation of the Zeth protocol by Clearmatics
Public Member Functions | List of all members
libzeth::output_note_gadget< FieldT, HashT > Class Template Reference

Commit to the output notes of the Joinsplit. More...

#include <note.hpp>

Inheritance diagram for libzeth::output_note_gadget< FieldT, HashT >:
Inheritance graph
[legend]
Collaboration diagram for libzeth::output_note_gadget< FieldT, HashT >:
Collaboration graph
[legend]

Public Member Functions

 output_note_gadget (libsnark::protoboard< FieldT > &pb, std::shared_ptr< libsnark::digest_variable< FieldT >> rho, const libsnark::pb_variable< FieldT > &commitment, const std::string &annotation_prefix="output_note_gadget")
 
void generate_r1cs_constraints ()
 
void generate_r1cs_witness (const zeth_note &note)
 
- Public Member Functions inherited from libzeth::note_gadget< FieldT >
 note_gadget (libsnark::protoboard< FieldT > &pb, const std::string &annotation_prefix="note_gadget")
 
void generate_r1cs_constraints ()
 
void generate_r1cs_witness (const zeth_note &note)
 

Additional Inherited Members

- Public Attributes inherited from libzeth::note_gadget< FieldT >
libsnark::pb_variable_array< FieldT > value
 
libsnark::pb_variable_array< FieldT > r
 

Detailed Description

template<typename FieldT, typename HashT>
class libzeth::output_note_gadget< FieldT, HashT >

Commit to the output notes of the Joinsplit.

Definition at line 98 of file note.hpp.

Constructor & Destructor Documentation

◆ output_note_gadget()

template<typename FieldT , typename HashT >
libzeth::output_note_gadget< FieldT, HashT >::output_note_gadget ( libsnark::protoboard< FieldT > &  pb,
std::shared_ptr< libsnark::digest_variable< FieldT >>  rho,
const libsnark::pb_variable< FieldT > &  commitment,
const std::string &  annotation_prefix = "output_note_gadget< FieldT, HashT >" 
)

Member Function Documentation

◆ generate_r1cs_constraints()

template<typename FieldT , typename HashT >
void libzeth::output_note_gadget< FieldT, HashT >::generate_r1cs_constraints ( )

◆ generate_r1cs_witness()

template<typename FieldT , typename HashT >
void libzeth::output_note_gadget< FieldT, HashT >::generate_r1cs_witness ( const zeth_note note)

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