Skip to content

Commit 4ae5171

Browse files
committed
Merge bitcoin/bitcoin#29219: fuzz: Improve fuzzing stability for ellswift_roundtrip harness
154fcce [fuzz] Improve fuzzing stability for ellswift_roundtrip harness (dergoegge) Pull request description: See #29018 ACKs for top commit: sipa: utACK 154fcce brunoerg: crACK 154fcce Tree-SHA512: 1e1ee47467a4a0d3a4e79f672018b440d8b3ccafba7428d37b9d0b8d3afd07e3f64f53ee668ed8a6a9ad1919422b5970814eaf857890acae7546951d8cb141d6
2 parents 522b837 + 154fcce commit 4ae5171

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/fuzz/key.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,10 @@ FUZZ_TARGET(ellswift_roundtrip, .init = initialize_key)
322322
auto encoded_ellswift = key.EllSwiftCreate(ent32);
323323
auto decoded_pubkey = encoded_ellswift.Decode();
324324

325-
assert(key.VerifyPubKey(decoded_pubkey));
325+
uint256 hash{ConsumeUInt256(fdp)};
326+
std::vector<unsigned char> sig;
327+
key.Sign(hash, sig);
328+
assert(decoded_pubkey.Verify(hash, sig));
326329
}
327330

328331
FUZZ_TARGET(bip324_ecdh, .init = initialize_key)

0 commit comments

Comments
 (0)