Skip to content

Commit

Permalink
plonk: moved constructor of transcipt_hasher class as first method in…
Browse files Browse the repository at this point in the history
… the class. addresses #61 (comment)
  • Loading branch information
Vesselin Velichkov committed Aug 19, 2022
1 parent d23718c commit f0e51c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libsnark/zk_proof_systems/plonk/srs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ template<typename ppT> class transcript_hasher
std::array<libff::Fr<ppT>, 6> hash_values;

public:
// constructor
transcript_hasher(std::vector<uint8_t> &buffer);

void add_element(const libff::Fr<ppT> &element);
void add_element(const libff::G1<ppT> &element);
void add_element(const libff::G2<ppT> &element);
Expand All @@ -267,9 +270,6 @@ template<typename ppT> class transcript_hasher

// get buffer size
size_t buffer_size();

// constructor
transcript_hasher(std::vector<uint8_t> &buffer);
};

} // namespace libsnark
Expand Down

0 comments on commit f0e51c5

Please sign in to comment.