1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-16 11:44:55 +02:00

include/libeosio/WIF.hpp: add wif_codec_t struct and related functions/constants.

This commit is contained in:
Henrik Hautakoski 2023-04-04 13:29:12 +02:00
parent 86d75df2ec
commit 18f35c66b5
2 changed files with 20 additions and 0 deletions

View file

@ -36,6 +36,9 @@ const std::string WIF_PVT_LEG = "";
const std::string WIF_PVT_K1 = "PVT_K1_";
const std::string WIF_SIG_K1 = "SIG_K1_";
const wif_codec_t WIF_CODEC_K1 = { WIF_PUB_K1, WIF_PVT_K1 };
const wif_codec_t WIF_CODEC_LEG = wif_create_legacy_codec(WIF_PUB_LEG);
std::string wif_priv_encode(const ec_privkey_t& priv, const std::string& prefix) {
checksum_t check;