Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
codygunton committed Aug 15, 2023
1 parent dfbf067 commit 1709038
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ signature construct_signature(const std::string& message, const key_pair<Fr, G1>
template <typename Hash, typename Fq, typename Fr, typename G1>
typename G1::affine_element recover_public_key(const std::string& message, const signature& sig);

// TODO(https://github.com/AztecProtocol/barretenberg/issues/659)
template <typename Hash, typename Fq, typename Fr, typename G1>
bool verify_signature(const auto& message,
const typename G1::affine_element& public_key,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ namespace schnorr {
*
* @tparam Hash the hash-function used as random-oracle
* @tparam G1 Group over which the signature is produced
* @param message what are we signing over? // WORKTODO: this was only audited for std::string.
* @todo TODO(https://github.com/AztecProtocol/barretenberg/issues/659)
* @param message what are we signing over?
* @param pubkey the pubkey of the signer
* @param R the nonce
* @return e = H(pedersen(R.x || pubkey.x || pubkey.y), message) as a 256-bit integer,
Expand Down

0 comments on commit 1709038

Please sign in to comment.