| 228 | } |
| 229 | |
| 230 | CKey ConsumePrivateKey(FuzzedDataProvider& fuzzed_data_provider, std::optional<bool> compressed) noexcept |
| 231 | { |
| 232 | auto key_data = fuzzed_data_provider.ConsumeBytes<uint8_t>(32); |
| 233 | key_data.resize(32); |
| 234 | CKey key; |
| 235 | bool compressed_value = compressed ? *compressed : fuzzed_data_provider.ConsumeBool(); |
| 236 | key.Set(key_data.begin(), key_data.end(), compressed_value); |
| 237 | return key; |
| 238 | } |
| 239 | |
| 240 | bool ContainsSpentInput(const CTransaction& tx, const CCoinsViewCache& inputs) noexcept |
| 241 | { |
no test coverage detected