MacroFake
0968c51401
Merge bitcoin/bitcoin#26497 : fuzz: Make ConsumeNetAddr always produce valid onion addresses
...
0eeb9b0442fb2f2da33c04704eefe6a84d28e981 [fuzz] Move ConsumeNetAddr to fuzz/util/net.h (dergoegge)
291c8697d4be0f38635b67880107e39d3ec585ad [fuzz] Make ConsumeNetAddr produce valid onion addresses (dergoegge)
c9ba3f836e1646875d2f96f1f466f8a83634a6f7 [netaddress] Make OnionToString public (dergoegge)
Pull request description:
The chance that the fuzzer is able to guess a valid onion address is probably slim, as they are Base32 encoded and include a checksum. Right now, any target using `ConsumeNetAddr` would have a hard time uncovering bugs that require valid onion addresses as input.
This PR makes `ConsumeNetAddr` produce valid onion addresses by using the 32 bytes given by the fuzzer as the pubkey for the onion address and forming a valid address according to the torv3 spec.
ACKs for top commit:
vasild:
ACK 0eeb9b0442fb2f2da33c04704eefe6a84d28e981
brunoerg:
ACK 0eeb9b0442fb2f2da33c04704eefe6a84d28e981
Tree-SHA512: 7c687a4d12f9659559be8f0c3cd4265167d1261d419cfd3d503fd7c7f207cc0db745220f02fb1737e4a5700ea7429311cfc0b42e6c15968ce6a85f8813c7e1d8
2022-11-21 14:35:20 +01:00
..
2022-11-18 17:04:49 -08:00
2022-10-31 10:17:04 +00:00
2022-07-20 16:26:19 +02:00
2022-09-23 10:48:47 +01:00
2022-08-13 13:55:38 +01:00
2022-10-26 15:55:29 +03:00
2022-10-10 14:23:00 +08:00
2022-08-20 11:55:17 +02:00
2022-10-25 15:57:28 +02:00
2022-09-23 10:48:47 +01:00
2022-10-28 11:08:20 +02:00
2022-09-29 16:43:30 +01:00
2022-02-16 14:59:20 +02:00
2022-10-23 15:03:04 +01:00
2022-11-18 17:04:49 -08:00
2022-11-16 20:16:07 +00:00
2022-08-31 15:10:26 +02:00
2022-11-17 14:30:11 +00:00
2022-11-21 11:32:36 +01:00
2022-10-28 20:03:22 -04:00
2022-06-11 14:55:18 +01:00
2022-09-23 10:48:47 +01:00
2022-11-21 14:35:20 +01:00
2022-11-14 10:17:54 +01:00
2022-11-16 12:21:33 +01:00
2022-11-15 19:53:04 -05:00
2022-10-10 15:44:02 +01:00
2022-04-26 10:43:33 +01:00
2021-11-12 11:46:34 +01:00
2022-08-31 08:38:24 +01:00
2022-07-30 10:23:58 +02:00
2022-04-20 14:29:29 +01:00
2022-07-30 11:04:09 +02:00
2022-07-30 11:04:09 +02:00
2022-07-30 11:04:09 +02:00
2022-04-14 07:15:22 +02:00
2022-04-14 19:26:22 +02:00
2022-07-30 10:23:58 +02:00
2022-05-20 15:17:00 +02:00
2022-04-27 14:16:35 +02:00
2022-05-21 13:54:33 -05:00
2022-10-04 21:49:07 +01:00
2021-12-06 14:17:41 +13:00
2022-09-09 11:47:27 -04:00
2022-11-15 09:41:23 -05:00
2022-09-21 16:53:11 +01:00
2022-07-20 10:34:46 +01:00
2022-10-31 10:17:04 +00:00
2022-10-31 10:17:04 +00:00
2022-05-17 10:37:10 +01:00
2022-05-17 10:37:10 +01:00
2022-08-24 10:15:32 +02:00
2022-08-31 16:51:32 +01:00
2022-08-31 15:10:26 +02:00
2022-08-23 16:05:00 -04:00
2022-08-31 15:31:34 +03:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-09-09 10:07:39 +02:00
2022-10-18 14:12:42 +02:00
2022-02-22 15:36:19 +00:00
2022-02-22 15:36:19 +00:00
2022-08-19 17:11:06 +02:00
2022-06-21 16:19:10 +02:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-05-21 13:54:33 -05:00
2022-07-27 13:27:57 +02:00
2022-03-30 20:11:15 +01:00
2022-08-03 12:03:28 -04:00
2022-09-13 12:38:06 -04:00
2022-09-13 12:38:06 -04:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-05-10 12:09:33 +10:00
2022-05-10 12:09:33 +10:00
2022-02-16 15:02:26 +02:00
2022-10-26 11:10:23 +08:00
2022-04-21 12:01:00 -05:00
2022-09-14 11:55:10 +01:00
2022-08-19 08:58:56 +01:00
2022-08-30 13:52:45 +02:00
2022-07-20 15:34:36 +02:00
2022-08-30 12:09:04 -04:00
2022-08-29 08:10:35 -04:00
2022-05-18 19:15:03 +02:00
2021-12-30 19:36:57 +02:00
2022-09-30 16:29:22 +02:00
2022-04-06 13:19:36 +01:00
2022-09-12 12:55:36 +02:00
2022-08-11 17:51:18 +02:00
2022-11-18 11:33:10 -05:00
2022-06-02 11:42:12 -04:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-08-04 11:32:26 +02:00
2022-08-04 11:32:25 +02:00
2022-10-25 15:57:38 +02:00
2022-10-25 15:57:38 +02:00
2022-11-18 17:04:49 -08:00
2022-11-15 19:23:39 -05:00
2022-04-26 16:25:38 -04:00
2022-06-23 15:33:01 +02:00
2022-02-28 16:59:56 +01:00
2022-09-13 17:15:17 +01:00
2022-09-13 17:15:17 +01:00
2022-11-17 14:52:45 +00:00
2022-10-18 14:02:09 +02:00
2022-11-14 14:22:43 +01:00
2022-07-20 10:34:46 +01:00
2022-09-23 10:48:47 +01:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-11-18 17:04:49 -08:00
2022-09-15 14:44:38 +10:00
2022-05-18 19:15:03 +02:00
2021-12-30 19:36:57 +02:00
2022-10-12 15:49:02 -04:00
2022-10-27 16:09:33 +02:00
2022-11-17 14:52:45 +00:00
2022-11-17 14:52:45 +00:00
2022-10-12 15:49:02 -04:00
2022-07-20 16:26:24 +02:00
2022-04-25 15:09:14 +02:00
2022-04-20 14:35:53 +01:00
2022-06-14 10:38:51 +02:00
2022-08-16 20:00:19 -04:00
2022-08-18 16:47:15 -03:00
2022-08-23 11:34:10 -04:00
2022-08-23 11:34:10 -04:00
2022-09-23 10:48:47 +01:00
2022-10-17 12:35:43 +03:00
2022-10-17 12:35:43 +03:00
2022-10-17 11:13:02 -04:00
2022-10-17 11:13:02 -04:00
2022-08-10 14:25:43 -04:00
2022-08-04 11:32:25 +02:00
2022-09-23 10:48:47 +01:00
2022-07-13 15:21:12 +02:00
2022-07-20 10:34:46 +01:00
2021-12-30 19:36:57 +02:00
2022-10-13 13:30:55 -04:00
2022-03-10 12:01:53 +01:00
2022-05-17 17:18:58 +01:00
2022-05-12 02:25:55 +10:00
2022-07-26 11:05:04 +02:00
2022-06-14 10:38:51 +02:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-04-26 09:41:45 +01:00
2022-10-24 13:02:37 -06:00
2021-12-30 19:36:57 +02:00
2022-10-11 09:18:55 +08:00
2022-07-13 15:20:49 +02:00
2022-08-20 09:33:01 +02:00
2022-08-05 14:59:15 +02:00
2022-08-05 14:59:15 +02:00
2022-07-20 10:34:46 +01:00
2022-03-15 01:33:52 +00:00
2022-07-22 12:45:07 +02:00
2022-09-13 12:38:06 -04:00
2022-11-16 20:17:05 +00:00
2022-11-18 17:04:49 -08:00
2022-11-18 17:04:49 -08:00
2022-07-28 14:39:45 +08:00
2022-07-28 14:39:45 +08:00
2021-12-30 19:36:57 +02:00
2022-09-15 16:48:50 -04:00
2022-11-18 17:04:49 -08:00
2022-10-26 11:41:57 +02:00
2022-11-04 09:38:39 -04:00
2022-05-09 18:35:44 +02:00
2022-05-05 15:55:44 +02:00
2022-05-12 02:25:55 +10:00
2022-01-06 22:14:16 -05:00
2022-05-21 01:23:23 +10:00
2021-12-30 19:36:57 +02:00