Skip to content

Commit

Permalink
plonk: created a new transcript_hasher.hpp file with just a comment t…
Browse files Browse the repository at this point in the history
…hat describes the interface of a common transcript hasher. addresses step 1. from comment #61 (comment) of PR#61.
  • Loading branch information
Vesselin Velichkov committed Oct 13, 2022
1 parent 3c8c427 commit 67a5249
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions libsnark/transcript_hasher/transcript_hasher.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/** @file
*****************************************************************************
* @author This file is part of libff, developed by Clearmatics Ltd
* (originally developed by SCIPR Lab) and contributors
* (see AUTHORS).
* @copyright MIT license (see LICENSE file)
*****************************************************************************/

#ifndef LIBSNARK_TRANSCRIPT_HASHER_TRANSCRIPT_HASHER_HPP_
#define LIBSNARK_TRANSCRIPT_HASHER_TRANSCRIPT_HASHER_HPP_

// // interface for a common transcript_hasher class used to implement
// // functionality for hashing the communication transcript in ZK proof
// // systems under ./zk_proof_systems
// template<typename ppT> class transcript_hasher
// {
// public:
// transcript_hasher();
//
// // add an Fr element to the transcript buffer for hashing
// void add_element(const libff::Fr<ppT> &element);
// // add the coordinates of a G1 curve point to the transcript buffer for
// // hashing
// void add_element(const libff::G1<ppT> &element);
// // add the coordinates of a G2 curve point to the transcript buffer for
// // hashing
// void add_element(const libff::G2<ppT> &element);
// // return the hash value of the communication transcript
// libff::Fr<ppT> get_hash();
// };

#endif // LIBSNARK_ZK_PROOF_SYSTEMS_PLONK_SRS_HPP_

0 comments on commit 67a5249

Please sign in to comment.