1
0
Fork 0
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:
Henrik Hautakoski 2023-03-14 19:55:08 +01:00
parent 0c9b867049
commit b9c9e58050

View file

@ -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