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:
parent
640f67a934
commit
7ef801c2a8
3 changed files with 118 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue