mirror of
https://github.com/eosswedenorg/libantelope
synced 2026-07-04 15:23:41 +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;
|
ec_pubkey_t pub;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initialize the ec library.
|
||||||
|
*/
|
||||||
|
int ec_init();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates a keypair using the secp256k1 curve.
|
* Generates a keypair using the secp256k1 curve.
|
||||||
* public key is in compressed format.
|
* public key is in compressed format.
|
||||||
*/
|
*/
|
||||||
int ec_generate_key(struct ec_keypair *pair);
|
int ec_generate_key(struct ec_keypair *pair);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Shutdown the ec library.
|
||||||
|
*/
|
||||||
|
void ec_shutdown();
|
||||||
|
|
||||||
} // namespace libeosio
|
} // namespace libeosio
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue