forked from lthn/blockchain
crypto: generate_schnorr_sig version for public_key and secret_key types
This commit is contained in:
parent
b778f0d918
commit
268632d6da
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue