MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / FromString

Method FromString

src/script/descriptor.cpp:2271–2279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2269 }
2270
2271 std::optional<Key> FromString(std::span<const char>& in) const
2272 {
2273 assert(m_out);
2274 Key key = m_keys.size();
2275 auto pk = ParsePubkey(m_expr_index, in, ParseContext(), *m_out, m_key_parsing_error);
2276 if (pk.empty()) return {};
2277 m_keys.emplace_back(std::move(pk));
2278 return key;
2279 }
2280
2281 std::optional<std::string> ToString(const Key& key, bool&) const
2282 {

Callers 2

ParseKeyFunction · 0.45
ParseFunction · 0.45

Calls 5

ParsePubkeyFunction · 0.85
ParseContextEnum · 0.85
sizeMethod · 0.45
emptyMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected