common/blindedpath: EXPERIMENTAL creation of blinded paths.

For inclusion in the onion as a reply path.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-12-09 14:27:50 +10:30
parent 1d1804e318
commit f315f1c63f
3 changed files with 119 additions and 0 deletions

17
common/blindedpath.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef LIGHTNING_COMMON_BLINDEDPATH_H
#define LIGHTNING_COMMON_BLINDEDPATH_H
#include "config.h"
#include <ccan/tal/tal.h>
#if EXPERIMENTAL_FEATURES
struct route_info;
struct pubkey;
/* Fills in *initial_blinding and *final_blinding and returns
* onionmsg_path array for this route */
struct onionmsg_path **make_blindedpath(const tal_t *ctx,
const struct pubkey *route,
struct pubkey *initial_blinding,
struct pubkey *final_blinding);
#endif /* EXPERIMENTAL_FEATURES */
#endif /* LIGHTNING_COMMON_BLINDEDPATH_H */