common/onion: split into decode and encode routines.

Some places (e.g. the pay plugin) only need to construct onions,
not decode them.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-11-09 12:00:10 +10:30
committed by Christian Decker
parent c5656ec90a
commit 8720bbedae
28 changed files with 184 additions and 203 deletions

View File

@@ -2,7 +2,7 @@
#include <assert.h>
#include <ccan/mem/mem.h>
#include <common/onion.h>
#include <common/onion_decode.h>
#include <common/onionreply.h>
#include <common/overflows.h>
#include <common/sphinx.h>