36 const unsigned int n_in = fuzzed_data_provider.
ConsumeIntegral<
unsigned int>();
38 const bool store = fuzzed_data_provider.
ConsumeBool();
42 const auto random_bytes = fuzzed_data_provider.
ConsumeBytes<
unsigned char>(64);
44 if (random_bytes.size() == 64) {
51 if (!random_bytes.empty()) {
int64_t CAmount
Amount in satoshis (Can be negative).
The basic transaction that is broadcasted on the network and contained in blocks.
bool VerifySchnorrSignature(std::span< const unsigned char > sig, const XOnlyPubKey &pubkey, const uint256 &sighash) const override
bool VerifyECDSASignature(const std::vector< unsigned char > &vchSig, const CPubKey &vchPubKey, const uint256 &sighash) const override
std::vector< T > ConsumeBytes(size_t num_bytes)
T ConsumeIntegralInRange(T min, T max)
Valid signature cache, to avoid doing expensive ECDSA signature checking twice for every transaction ...
static constexpr TransactionSerParams TX_WITH_WITNESS
void initialize_script_sigcache()
std::unique_ptr< T > MakeNoLogFileContext(const ChainType chain_type=ChainType::REGTEST, TestOpts opts={})
Make a test setup that has disk access to the debug.log file disabled.
static constexpr size_t DEFAULT_SIGNATURE_CACHE_BYTES
A mutable version of CTransaction.
CAmount ConsumeMoney(FuzzedDataProvider &fuzzed_data_provider, const std::optional< CAmount > &max) noexcept
uint256 ConsumeUInt256(FuzzedDataProvider &fuzzed_data_provider) noexcept
std::vector< B > ConsumeRandomLengthByteVector(FuzzedDataProvider &fuzzed_data_provider, const std::optional< size_t > &max_length=std::nullopt) noexcept
std::optional< T > ConsumeDeserializable(FuzzedDataProvider &fuzzed_data_provider, const P ¶ms, const std::optional< size_t > &max_length=std::nullopt) noexcept
void SeedRandomStateForTest(SeedRand seedtype)
Seed the global RNG state for testing and log the seed value.
@ ZEROS
Seed with a compile time constant of zeros.