Rusty Russell
f00cc23f67
sphinx: rename confusing functions, ensure valid payloads.
...
"sphinx_add_hop" takes a literal hop to include,
"sphinx_add_modern_hop" prepends the length. Now we always prepend a
length, make it clear that the literal version is a shortcut:
* sphinx_add_hop -> sphinx_add_hop_has_length
* sphinx_add_modern_hop -> sphinx_add_hop
In addition, we check that length is actually correct! This means
`createonion` can no longer create legacy or otherwise-invalid onions:
fix tests and update man page to remove legacy usage.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
Changelog-Changed: JSON-RPC: `createonion` no longer allows non-TLV-style payloads.
2022-09-28 13:40:57 +02:00
..
2022-09-19 10:18:55 +09:30
2021-10-28 15:51:38 +02:00
2022-09-16 12:31:45 +09:30
2022-09-16 12:31:45 +09:30
2022-09-24 15:22:27 +09:30
2022-09-16 12:31:45 +09:30
2022-09-12 09:34:52 +09:30
2022-09-12 09:34:52 +09:30
2021-01-10 13:44:04 +01:00
2022-09-16 12:31:45 +09:30
2022-09-26 13:52:04 +02:00
2022-09-16 12:31:45 +09:30
2022-09-16 12:31:45 +09:30
2022-09-14 15:59:37 +09:30
2022-02-07 13:02:09 +10:30
2022-09-19 10:18:55 +09:30
2022-09-16 12:31:45 +09:30
2022-07-15 12:24:00 -05:00
2022-09-16 12:31:45 +09:30
2022-07-18 20:50:04 -05:00
2022-07-15 12:24:00 -05:00
2022-07-15 12:24:00 -05:00
2022-09-24 15:22:27 +09:30
2022-09-24 15:22:27 +09:30
2022-07-20 19:28:33 +09:30
2021-09-17 09:43:22 +09:30
2022-04-20 16:30:05 +09:30
2021-12-28 04:42:42 +10:30
2021-12-06 10:05:39 +10:30
2020-09-08 09:42:00 +09:30
2022-09-22 15:19:46 +02:00
2020-09-08 09:42:00 +09:30
2022-03-05 15:03:34 +10:30
2019-05-31 17:57:10 +02:00
2022-09-22 15:19:46 +02:00
2022-09-19 10:18:55 +09:30
2022-09-19 11:34:42 +09:30
2022-09-21 11:25:47 +02:00
2021-12-06 10:05:39 +10:30
2021-09-17 09:43:22 +09:30
2022-07-25 08:11:09 -07:00
2022-07-09 09:59:52 +09:30
2022-07-15 12:24:00 -05:00
2022-09-19 11:34:42 +09:30
2022-03-10 09:40:09 +10:30
2022-09-22 15:19:46 +02:00
2022-09-19 10:18:55 +09:30
2022-09-22 15:19:46 +02:00
2022-09-16 12:31:45 +09:30
2021-12-28 04:42:42 +10:30
2022-09-28 13:40:57 +02:00
2021-12-01 05:44:28 +10:30
2022-09-21 11:25:47 +02:00
2022-09-21 11:25:47 +02:00
2022-09-21 11:25:47 +02:00
2022-03-23 13:20:12 +10:30
2022-09-22 17:19:11 +09:30
2021-09-17 09:43:22 +09:30
2022-09-28 13:40:57 +02:00
2022-09-19 10:18:55 +09:30
2022-09-16 12:31:45 +09:30
2022-07-28 15:08:44 +09:30
2022-02-08 11:15:52 +10:30
2022-02-08 11:15:52 +10:30
2022-09-28 13:40:57 +02:00
2022-09-22 15:19:46 +02:00
2022-07-15 12:24:00 -05:00
2022-09-16 12:31:45 +09:30
2021-06-25 09:49:33 +09:30
2022-09-16 12:31:45 +09:30
2022-09-16 12:31:45 +09:30
2022-09-19 11:34:42 +09:30
2022-09-16 12:31:45 +09:30
2022-08-09 16:31:36 -05:00
2021-06-16 10:29:17 +09:30
2022-09-16 12:31:45 +09:30
2022-09-12 14:00:41 +02:00
2022-09-12 14:00:41 +02:00
2022-08-31 12:18:28 +03:00
2022-08-31 12:18:28 +03:00