MCPcopy Create free account
hub / github.com/ElementsProject/elements / EncodeExtPubKey

Function EncodeExtPubKey

src/key_io.cpp:425–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425std::string EncodeExtPubKey(const CExtPubKey& key)
426{
427 std::vector<unsigned char> data = Params().Base58Prefix(CChainParams::EXT_PUBLIC_KEY);
428 size_t size = data.size();
429 data.resize(size + BIP32_EXTKEY_SIZE);
430 key.Encode(data.data() + size);
431 std::string ret = EncodeBase58Check(data);
432 return ret;
433}
434
435CExtKey DecodeExtKey(const std::string& str)
436{

Callers 6

sendtomainchain_pakFunction · 0.85
ToStringMethod · 0.85
ToNormalizedStringMethod · 0.85
RunTestFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85

Calls 6

EncodeBase58CheckFunction · 0.85
ParamsClass · 0.70
sizeMethod · 0.45
resizeMethod · 0.45
EncodeMethod · 0.45
dataMethod · 0.45

Tested by 2

RunTestFunction · 0.68
FUZZ_TARGET_INITFunction · 0.68