Files
lightning/common
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
..
2021-11-14 18:49:46 +01:00
2020-09-23 16:30:36 +09:30
2020-04-04 16:08:49 +10:30
2021-10-10 13:22:29 +02:00
2020-04-04 16:08:49 +10:30
2020-04-04 16:08:49 +10:30
2022-09-19 10:18:55 +09:30
2021-12-30 14:36:55 +10:30
2022-09-14 13:14:32 +02:00
2020-02-05 14:19:12 +01:00
2018-02-08 22:49:34 +01:00
2022-07-15 12:24:00 -05:00
2020-01-23 16:17:42 +10:30
2022-01-20 15:24:06 +10:30
2022-01-20 15:24:06 +10:30
2019-04-16 21:22:13 +00:00
2022-01-20 15:24:06 +10:30
2020-10-20 12:50:31 +10:30
2021-10-15 12:09:36 +02:00
2021-10-15 12:09:36 +02:00