Files
lightning/devtools
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-07-19 15:29:26 +09:30
2021-01-26 15:45:13 +01:00
2022-08-31 12:18:28 +03:00
2022-07-17 08:51:02 +09:30
2022-08-31 12:18:28 +03:00
2022-07-17 08:51:02 +09:30
2022-08-16 12:32:08 -05:00