5#include <bitcoin-build-config.h>
13#ifdef ENABLE_EXTERNAL_SIGNER
19#ifdef ENABLE_EXTERNAL_SIGNER
28 auto c = sp::Popen(
cmd_args, sp::input{sp::PIPE}, sp::output{sp::PIPE}, sp::error{sp::PIPE});
43 if (!
result_json.read(result))
throw std::runtime_error(
"Unable to parse JSON: " + result);
47 throw std::runtime_error(
"Compiled without external signing support (required for external signing).");
auto Join(const C &container, const S &separator, UnaryOp unary_op)
Join all container items.
UniValue RunCommandParseJSON(const std::vector< std::string > &cmd_args, const std::string &str_std_in)
Execute a command which returns JSON, and parse the result.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.