1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-17 03:50:04 +02:00

include/libeosio/WIF.hpp: Adding wif_pub_decode function

This commit is contained in:
Henrik Hautakoski 2023-03-10 13:46:20 +01:00
parent 65f93f061c
commit c990bae52e
4 changed files with 61 additions and 0 deletions

View file

@ -44,6 +44,11 @@ bool wif_priv_decode(ec_privkey_t& priv, const std::string& data);
*/
std::string wif_pub_encode(const ec_pubkey_t& pub, const std::string& prefix = "EOS");
/**
* Decode an WIF String to EC public key
*/
bool wif_pub_decode(ec_pubkey_t& pub, const std::string& data, size_t prefix_length = 3);
/**
* Prints an EC keypair in WIF format to standard out.
*/