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

Function EncodeExtPubKey

src/key_io.cpp:175–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175std::string EncodeExtPubKey(const CExtPubKey& key)
176{
177 std::vector<unsigned char> data = Params().Base58Prefix(CChainParams::EXT_PUBLIC_KEY);
178 size_t size = data.size();
179 data.resize(size + BIP32_EXTKEY_SIZE);
180 key.Encode(data.data() + size);
181 std::string ret = EncodeBase58Check(data);
182 return ret;
183}
184
185CExtKey DecodeExtKey(const std::string& str)
186{

Callers 2

ToStringMethod · 0.85
RunTestFunction · 0.85

Calls 6

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

Tested by 1

RunTestFunction · 0.68