MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / EncodeExtPubKey

Function EncodeExtPubKey

src/key_io.cpp:258–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258std::string EncodeExtPubKey(const CExtPubKey& key)
259{
260 std::vector<unsigned char> data = Params().Base58Prefix(CChainParams::EXT_PUBLIC_KEY);
261 size_t size = data.size();
262 data.resize(size + BIP32_EXTKEY_SIZE);
263 key.Encode(data.data() + size);
264 std::string ret = EncodeBase58Check(data);
265 return ret;
266}
267
268CExtKey DecodeExtKey(const std::string& str)
269{

Callers 12

GenerateWalletDescriptorFunction · 0.85
MigrateToDescriptorMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
gethdkeysFunction · 0.85
createwalletdescriptorFunction · 0.85
addhdkeyFunction · 0.85
ToStringMethod · 0.85
ToNormalizedStringMethod · 0.85
RunTestFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
key_io.cppFile · 0.85
InitMethod · 0.85

Calls 6

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

Tested by 4

BOOST_AUTO_TEST_CASEFunction · 0.68
RunTestFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
InitMethod · 0.68