Erick Cestari
d7319795b4
common/bolt11: enforce minimum witness program length for fallback addresses
...
BIP-141 specifies that a witness program must be between 2 and 40 bytes in
length. In our fallback address parsing, we were already checking the upper
bound, but missing the lower bound check. This commit adds validation to
ensure fallback address witness programs are at least 2 bytes long, bringing
our implementation in line with the spec and other implementations like
rust-lightning.
Changelog-Fixed: Enforced minimum witness program length of 2 bytes for
fallback addresses to comply with BIP-141 and prevent invalid decodings.
2025-04-15 10:41:33 +09:30
..
2025-03-18 14:30:58 +10:30
2024-11-12 06:42:52 +10:30
2024-11-12 06:42:52 +10:30
2024-11-21 16:17:52 +10:30
2024-11-21 16:17:52 +10:30
2024-05-18 10:02:43 +02:00
2023-05-27 15:06:31 +09:30
2023-05-27 15:06:31 +09:30
2022-09-19 10:18:55 +09:30
2022-09-12 09:34:52 +09:30
2024-10-16 07:14:32 +10:30
2024-10-16 07:14:32 +10:30
2024-10-16 07:14:32 +10:30
2023-01-30 13:24:29 +10:30
2024-10-16 07:14:32 +10:30
2024-10-16 07:14:32 +10:30
2024-03-20 13:51:48 +10:30
2024-03-20 13:51:48 +10:30
2024-03-20 13:51:48 +10:30
2025-04-15 10:41:33 +09:30
2023-09-21 20:08:24 +09:30
2024-08-01 12:31:48 +09:30
2024-08-01 12:31:48 +09:30
2025-02-11 20:19:01 -06:00
2024-08-01 12:31:48 +09:30
2025-02-11 20:19:01 -06:00
2025-02-11 20:19:01 -06:00
2024-05-09 16:14:23 -05:00
2024-07-23 09:54:47 +09:30
2024-11-12 06:42:52 +10:30
2024-06-19 15:54:24 +09:30
2024-06-19 15:54:24 +09:30
2025-03-18 14:30:58 +10:30
2023-08-02 16:12:32 +09:30
2023-08-02 16:12:32 +09:30
2024-08-08 12:30:53 -07:00
2024-08-08 12:30:53 -07:00
2025-02-24 19:38:37 +10:30
2025-02-24 19:38:37 +10:30
2024-08-10 15:20:59 +09:30
2025-02-24 19:38:37 +10:30
2023-09-20 13:56:46 +09:30
2023-06-23 13:12:42 +09:30
2022-07-18 20:50:04 -05:00
2022-07-18 20:50:04 -05:00
2025-01-28 10:53:22 +10:30
2024-03-20 11:18:36 +10:30
2024-07-10 12:21:19 +09:30
2025-02-14 22:17:21 +10:30
2024-01-26 10:30:22 +10:30
2024-07-23 09:54:47 +09:30
2023-09-21 20:08:24 +09:30
2025-01-27 11:07:04 +10:30
2025-01-27 11:07:04 +10:30
2024-03-07 14:09:14 +01:00
2024-03-07 14:09:14 +01:00
2022-09-19 10:18:55 +09:30
2025-03-18 14:30:58 +10:30
2025-03-18 14:30:58 +10:30
2024-05-13 14:06:45 -05:00
2024-05-13 14:06:45 -05:00
2025-03-18 14:30:58 +10:30
2023-01-30 15:15:41 -06:00
2024-02-12 11:43:33 +01:00
2025-04-01 16:33:23 +10:30
2025-02-11 15:11:47 -06:00
2025-02-21 17:03:36 -06:00
2025-02-21 17:03:36 -06:00
2024-07-23 09:54:47 +09:30
2024-01-29 12:02:37 +10:30
2024-01-29 12:02:37 +10:30
2024-11-13 08:49:55 +10:30
2024-11-13 08:49:55 +10:30
2024-08-01 12:31:48 +09:30
2023-06-29 11:28:47 -04:00
2023-06-29 11:28:47 -04:00
2023-06-29 11:28:47 -04:00
2024-06-19 15:54:24 +09:30
2024-10-16 07:14:32 +10:30
2024-10-16 07:14:32 +10:30
2024-06-19 15:54:24 +09:30
2024-03-20 13:51:48 +10:30
2024-03-20 13:51:48 +10:30
2023-06-29 11:28:47 -04:00
2025-03-18 14:30:58 +10:30
2024-11-21 14:15:36 +10:30
2025-02-11 20:19:01 -06:00
2024-10-16 07:14:32 +10:30
2024-05-12 19:11:43 -05:00
2024-01-29 13:40:34 +10:30
2024-01-29 13:40:34 +10:30
2024-06-25 08:47:50 +09:30
2024-06-25 08:47:50 +09:30
2022-11-09 20:25:58 +10:30
2022-11-09 20:25:58 +10:30
2025-01-13 15:45:19 -08:00
2024-11-12 06:42:52 +10:30
2023-07-13 19:34:47 +09:30
2023-07-13 19:34:47 +09:30
2024-10-04 11:27:53 +09:30
2024-10-04 11:27:53 +09:30
2024-10-07 14:05:47 +02:00
2024-10-07 14:05:47 +02:00
2024-11-21 14:15:36 +10:30
2025-02-11 20:19:01 -06:00
2023-03-22 13:50:32 +10:30
2025-02-11 20:19:01 -06:00
2022-06-21 06:52:35 +09:30
2022-06-21 06:52:35 +09:30
2024-11-12 06:42:52 +10:30
2023-10-03 10:05:55 +02:00
2023-10-03 10:05:55 +02:00
2024-11-01 16:54:49 +10:30
2024-03-20 13:51:48 +10:30
2024-03-20 13:51:48 +10:30
2024-11-20 12:29:27 +01:00
2024-11-20 12:29:27 +01:00
2024-10-16 07:14:32 +10:30
2024-10-16 07:14:32 +10:30
2025-02-11 20:19:01 -06:00
2024-10-16 07:14:32 +10:30
2024-10-16 07:14:32 +10:30
2024-10-16 07:14:32 +10:30
2023-10-23 15:48:50 +10:30
2023-10-23 15:48:50 +10:30
2023-10-23 15:48:50 +10:30
2023-03-23 16:10:55 +10:30
2023-09-21 20:08:24 +09:30
2024-05-17 13:03:12 -05:00
2024-05-17 13:03:12 -05:00
2024-05-09 16:14:23 -05:00
2023-07-31 21:00:22 +09:30
2023-07-11 11:41:15 +09:30
2023-07-11 11:41:15 +09:30
2024-11-12 06:42:52 +10:30
2024-11-12 06:42:52 +10:30
2025-02-11 16:54:08 -06:00
2023-08-12 09:24:06 +09:30
2023-10-23 15:48:50 +10:30
2023-10-23 15:48:50 +10:30
2024-10-07 14:05:47 +02:00
2024-10-07 14:05:47 +02:00
2025-02-22 11:51:54 -06:00
2024-05-12 19:11:43 -05:00
2024-05-12 19:11:43 -05:00
2024-01-16 15:47:03 +01:00
2025-03-18 14:30:58 +10:30
2025-03-18 14:30:58 +10:30
2024-11-18 11:03:26 +10:30
2024-11-18 11:03:26 +10:30
2024-12-16 09:36:17 +10:30
2024-11-12 06:42:52 +10:30
2024-05-08 21:05:49 -05:00
2024-05-08 21:05:49 -05:00
2024-12-16 09:48:51 +10:30
2024-12-16 09:48:51 +10:30
2024-12-16 09:48:51 +10:30
2023-09-21 20:08:24 +09:30
2025-04-03 08:27:27 -05:00
2025-04-03 08:27:27 -05:00
2023-02-07 21:03:36 -06:00
2023-02-07 21:03:36 -06:00
2024-02-16 15:02:38 +01:00
2024-07-23 09:54:47 +09:30
2023-06-29 11:28:47 -04:00
2023-06-29 11:28:47 -04:00
2023-06-03 10:50:29 +09:30
2023-06-03 10:50:29 +09:30
2023-01-30 15:15:41 -06:00
2024-11-21 14:15:36 +10:30
2024-11-21 14:15:36 +10:30
2024-11-25 15:39:13 +10:30
2024-11-25 15:39:13 +10:30