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

Method ToPrivateString

src/script/descriptor.cpp:412–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410 return ret;
411 }
412 bool ToPrivateString(const SigningProvider& arg, std::string& out) const override
413 {
414 CExtKey key;
415 if (!GetExtKey(arg, key)) return false;
416 out = EncodeExtKey(key) + FormatHDKeypath(m_path);
417 if (IsRange()) {
418 out += "/*";
419 if (m_derive == DeriveType::HARDENED) out += '\'';
420 }
421 return true;
422 }
423 bool ToNormalizedString(const SigningProvider& arg, std::string& out, const DescriptorCache* cache) const override
424 {
425 // For hardened derivation type, just return the typical string, nothing to normalize

Callers

nothing calls this directly

Calls 2

EncodeExtKeyFunction · 0.85
FormatHDKeypathFunction · 0.85

Tested by

no test coverage detected