diff options
author | fanquake <fanquake@gmail.com> | 2024-01-11 11:35:22 +0000 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2024-01-11 11:51:57 +0000 |
commit | 4ae5171d42bd288cbd9a6f307e07b71067b184f5 (patch) | |
tree | 7f65e13f112ac1a234bf4bf15765dc45bd863395 /src | |
parent | 522b8370d92a8815537b402f43951b45ed0fe7ad (diff) | |
parent | 154fcce55c84c251fad8d280eafb3c0a5284fcd4 (diff) | |
download | bitcoin-4ae5171d42bd288cbd9a6f307e07b71067b184f5.tar.xz |
Merge bitcoin/bitcoin#29219: fuzz: Improve fuzzing stability for ellswift_roundtrip harness
154fcce55c84c251fad8d280eafb3c0a5284fcd4 [fuzz] Improve fuzzing stability for ellswift_roundtrip harness (dergoegge)
Pull request description:
See #29018
ACKs for top commit:
sipa:
utACK 154fcce55c84c251fad8d280eafb3c0a5284fcd4
brunoerg:
crACK 154fcce55c84c251fad8d280eafb3c0a5284fcd4
Tree-SHA512: 1e1ee47467a4a0d3a4e79f672018b440d8b3ccafba7428d37b9d0b8d3afd07e3f64f53ee668ed8a6a9ad1919422b5970814eaf857890acae7546951d8cb141d6
Diffstat (limited to 'src')
-rw-r--r-- | src/test/fuzz/key.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/fuzz/key.cpp b/src/test/fuzz/key.cpp index be45443172..9e1e318e02 100644 --- a/src/test/fuzz/key.cpp +++ b/src/test/fuzz/key.cpp @@ -322,7 +322,10 @@ FUZZ_TARGET(ellswift_roundtrip, .init = initialize_key) auto encoded_ellswift = key.EllSwiftCreate(ent32); auto decoded_pubkey = encoded_ellswift.Decode(); - assert(key.VerifyPubKey(decoded_pubkey)); + uint256 hash{ConsumeUInt256(fdp)}; + std::vector<unsigned char> sig; + key.Sign(hash, sig); + assert(decoded_pubkey.Verify(hash, sig)); } FUZZ_TARGET(bip324_ecdh, .init = initialize_key) |