mirror of
https://github.com/eosswedenorg/libantelope
synced 2026-06-16 03:34:56 +02:00
include/libeosio/ec.hpp: Add ec_init() and ec_shutdown() functions.
This commit is contained in:
parent
0c9b867049
commit
b9c9e58050
1 changed files with 10 additions and 0 deletions
|
|
@ -57,12 +57,22 @@ struct ec_keypair {
|
|||
ec_pubkey_t pub;
|
||||
};
|
||||
|
||||
/**
|
||||
* Initialize the ec library.
|
||||
*/
|
||||
int ec_init();
|
||||
|
||||
/**
|
||||
* Generates a keypair using the secp256k1 curve.
|
||||
* public key is in compressed format.
|
||||
*/
|
||||
int ec_generate_key(struct ec_keypair *pair);
|
||||
|
||||
/**
|
||||
* Shutdown the ec library.
|
||||
*/
|
||||
void ec_shutdown();
|
||||
|
||||
} // namespace libeosio
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue