1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-16 19:50:01 +02:00

WIF: add optional prefix parameter to wif_pub_encode() and wif_print_key(), defaults to "EOS"

This commit is contained in:
Henrik Hautakoski 2021-05-06 15:09:36 +02:00
parent 19f6149e1e
commit eab4aee8af
2 changed files with 6 additions and 6 deletions

View file

@ -37,12 +37,12 @@ std::string wif_priv_encode(ec_privkey_t priv);
/**
* Encode an EC public key to WIF String.
*/
std::string wif_pub_encode(ec_pubkey_t pub);
std::string wif_pub_encode(ec_pubkey_t pub, const std::string& prefix = "EOS");
/**
* Prints an EC keypair in WIF format to standard out.
*/
void wif_print_key(const struct ec_keypair *key);
void wif_print_key(const struct ec_keypair *key, const std::string& prefix = "EOS");
} // namespace libeosio