1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-17 12:00:02 +02:00

include/libeosio/ec.hpp: Adding ecdsa_recover()

This commit is contained in:
Henrik Hautakoski 2023-03-21 13:19:23 +01:00
parent 640f67a934
commit 7ef801c2a8
3 changed files with 118 additions and 0 deletions

View file

@ -117,6 +117,12 @@ int ecdsa_sign(const ec_privkey_t& key, const sha256_t* digest, ec_signature_t&
*/
int ecdsa_verify(const sha256_t* digest, const ec_signature_t& sig, const ec_pubkey_t& key);
/**
* Recover the public key from the signature.
* returns zero if the public key could be extracted. -1 if an error occured.
*/
int ecdsa_recover(const sha256_t* digest, const ec_signature_t& sig, ec_pubkey_t& key);
/**
* Shutdown the ec library.
*/