1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-16 03:34:56 +02:00

include/libeosio/WIF.hpp: Make wif_priv_encode and wif_pub_encode default to K1 prefix.

This commit is contained in:
Henrik Hautakoski 2023-04-04 13:30:39 +02:00
parent 2f56e8b43d
commit 424fe4702d

View file

@ -58,7 +58,7 @@ inline wif_codec_t wif_create_legacy_codec(const std::string& pub_prefix) {
/**
* Encode an EC private key to WIF String.
*/
std::string wif_priv_encode(const ec_privkey_t& priv, const std::string& prefix = WIF_PVT_LEG);
std::string wif_priv_encode(const ec_privkey_t& priv, const std::string& prefix = WIF_PVT_K1);
/**
* Decode an WIF String to EC private key
@ -68,7 +68,7 @@ bool wif_priv_decode(ec_privkey_t& priv, const std::string& data);
/**
* Encode an EC public key to WIF String.
*/
std::string wif_pub_encode(const ec_pubkey_t& pub, const std::string& prefix = WIF_PUB_LEG);
std::string wif_pub_encode(const ec_pubkey_t& pub, const std::string& prefix = WIF_PUB_K1);
/**
* Decode an WIF String to EC public key