1
0
Fork 0
forked from lthn/blockchain

crypto: generate_schnorr_sig version for public_key and secret_key types

This commit is contained in:
sowle 2024-02-13 12:47:20 +01:00 committed by cryptozoidberg
parent b778f0d918
commit 268632d6da
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -123,6 +123,12 @@ namespace crypto
return true;
}
inline bool generate_schnorr_sig(const hash& m, const public_key& A, const secret_key& secret_a, generic_schnorr_sig& result)
{
return generate_schnorr_sig(m, point_t(A), scalar_t(secret_a), result);
}
template<generator_tag gen = gt_G>
inline bool verify_schnorr_sig(const hash& m, const public_key& A, const generic_schnorr_sig& sig) noexcept;