aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/script_sign.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/fuzz/script_sign.cpp')
-rw-r--r--src/test/fuzz/script_sign.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/fuzz/script_sign.cpp b/src/test/fuzz/script_sign.cpp
index cec98432e1..b2d7d68fb4 100644
--- a/src/test/fuzz/script_sign.cpp
+++ b/src/test/fuzz/script_sign.cpp
@@ -79,9 +79,7 @@ FUZZ_TARGET(script_sign, .init = initialize_script_sign)
}
FillableSigningProvider provider;
- CKey k;
- const std::vector<uint8_t> key_data = ConsumeRandomLengthByteVector(fuzzed_data_provider);
- k.Set(key_data.begin(), key_data.end(), fuzzed_data_provider.ConsumeBool());
+ CKey k = ConsumePrivateKey(fuzzed_data_provider);
if (k.IsValid()) {
provider.AddKey(k);
}