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

Function FormatKeyPath

src/script/descriptor.cpp:28–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26typedef std::vector<uint32_t> KeyPath;
27
28std::string FormatKeyPath(const KeyPath& path)
29{
30 std::string ret;
31 for (auto i : path) {
32 ret += strprintf("/%i", (i << 1) >> 1);
33 if (i >> 31) ret += '\'';
34 }
35 return ret;
36}
37
38/** Interface for public key objects in descriptors. */
39struct PubkeyProvider

Callers 2

ToStringMethod · 0.85
ToPrivateStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected