mirror of
https://github.com/eosswedenorg/libantelope
synced 2026-06-17 20:10:03 +02:00
include/libeosio/WIF.hpp: adding signature encode/decode functions.
This commit is contained in:
parent
8a6b476a8b
commit
73819444e5
5 changed files with 225 additions and 1 deletions
|
|
@ -54,6 +54,20 @@ bool wif_pub_decode(ec_pubkey_t& pub, const std::string& data, size_t prefix_len
|
|||
*/
|
||||
void wif_print_key(const struct ec_keypair *key, const std::string& prefix = "EOS");
|
||||
|
||||
/**
|
||||
* Signatures
|
||||
*/
|
||||
|
||||
/**
|
||||
* Encode an EC signature to WIF String.
|
||||
*/
|
||||
std::string wif_sig_encode(const ec_signature_t& sig);
|
||||
|
||||
/**
|
||||
* Decode an WIF String to EC signature
|
||||
*/
|
||||
bool wif_sig_decode(ec_signature_t& sig, const std::string& data);
|
||||
|
||||
} // namespace libeosio
|
||||
|
||||
#endif /* LIBEOSIO_WIF_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue