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

Function ParseKey

src/script/miniscript.h:1816–1821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1814/** Parse a key expression fully contained within a fragment with the name given by 'func' */
1815template<typename Key, typename Ctx>
1816std::optional<Key> ParseKey(const std::string& func, std::span<const char>& in, const Ctx& ctx)
1817{
1818 std::span<const char> expr = script::Expr(in);
1819 if (!script::Func(func, expr)) return {};
1820 return ctx.FromString(expr);
1821}
1822
1823/** Parse a hex string fully contained within a fragment with the name given by 'func' */
1824template<typename Ctx>

Callers 2

FindNextUserEntryMethod · 0.85
FindPrevUserEntryMethod · 0.85

Calls 3

ExprFunction · 0.85
FuncFunction · 0.85
FromStringMethod · 0.45

Tested by

no test coverage detected