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

Function FormatHDKeypath

src/util/bip32.cpp:53–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53std::string FormatHDKeypath(const std::vector<uint32_t>& path)
54{
55 std::string ret;
56 for (auto i : path) {
57 ret += strprintf("/%i", (i << 1) >> 1);
58 if (i >> 31) ret += '\'';
59 }
60 return ret;
61}
62
63std::string WriteHDKeypath(const std::vector<uint32_t>& keypath)
64{

Callers 6

OriginStringMethod · 0.85
ToStringMethod · 0.85
ToPrivateStringMethod · 0.85
ToNormalizedStringMethod · 0.85
FUZZ_TARGETFunction · 0.85
WriteHDKeypathFunction · 0.85

Calls

no outgoing calls

Tested by 1

FUZZ_TARGETFunction · 0.68