50 const std::optional<OutputType> parsed =
ParseOutputType(output_type_string);
52 assert(output_type == parsed.value());
57 const std::vector<uint8_t> bytes_decoded =
BitsToBytes(bits);
58 assert(bytes == bytes_decoded);
std::string ConsumeRandomLengthString(size_t max_length)
T PickValueInArray(const T(&array)[size])
bilingual_str TransactionErrorString(const TransactionError err)
FUZZ_TARGET(kitchen_sink)
std::vector< bool > BytesToBits(const std::vector< unsigned char > &bytes)
std::vector< unsigned char > BitsToBytes(const std::vector< bool > &bits)
const std::string & FormatOutputType(OutputType type)
std::optional< OutputType > ParseOutputType(const std::string &type)
static constexpr auto OUTPUT_TYPES
std::string StringForFeeEstimateHorizon(FeeEstimateHorizon horizon)
static constexpr auto ALL_FEE_ESTIMATE_HORIZONS
UniValue JSONRPCTransactionError(TransactionError terr, const std::string &err_string)
RPCErrorCode RPCErrorFromTransactionError(TransactionError terr)
std::vector< uint8_t > ConsumeRandomLengthByteVector(FuzzedDataProvider &fuzzed_data_provider, const std::optional< size_t > &max_length=std::nullopt) noexcept