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

Method ToPrivateString

src/script/descriptor.cpp:153–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 return ret;
152 }
153 bool ToPrivateString(const SigningProvider& arg, std::string& out) const override
154 {
155 CExtKey key;
156 if (!GetExtKey(arg, key)) return false;
157 out = EncodeExtKey(key) + FormatKeyPath(m_path);
158 if (IsRange()) {
159 out += "/*";
160 if (m_derive == DeriveType::HARDENED) out += '\'';
161 }
162 return true;
163 }
164};
165
166/** A parsed addr(A) descriptor. */

Callers

nothing calls this directly

Calls 2

EncodeExtKeyFunction · 0.85
FormatKeyPathFunction · 0.85

Tested by

no test coverage detected