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

Method ToString

src/script/descriptor.cpp:403–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401 return true;
402 }
403 std::string ToString() const override
404 {
405 std::string ret = EncodeExtPubKey(m_root_extkey) + FormatHDKeypath(m_path);
406 if (IsRange()) {
407 ret += "/*";
408 if (m_derive == DeriveType::HARDENED) ret += '\'';
409 }
410 return ret;
411 }
412 bool ToPrivateString(const SigningProvider& arg, std::string& out) const override
413 {
414 CExtKey key;

Callers

nothing calls this directly

Calls 2

EncodeExtPubKeyFunction · 0.85
FormatHDKeypathFunction · 0.85

Tested by

no test coverage detected