mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
69cb158edd
We use libsecp256k1 to convert signatures to DER; we were creating a temporary one, but we really should be handing the one we have in dstate through. This does that, everywhere. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
21 lines
647 B
C
21 lines
647 B
C
#ifndef LIGHTNING_DAEMON_ONION_H
|
|
#define LIGHTNING_DAEMON_ONION_H
|
|
#include "config.h"
|
|
#include "lightning.pb-c.h"
|
|
#include <ccan/short_types/short_types.h>
|
|
#include <secp256k1.h>
|
|
|
|
struct peer;
|
|
struct node_connection;
|
|
|
|
/* Decode next step in the route, and fill out the onion to send onwards. */
|
|
RouteStep *onion_unwrap(struct peer *peer,
|
|
const void *data, size_t len, const u8 **next);
|
|
|
|
/* Create an onion for sending msatoshi down path, paying fees. */
|
|
const u8 *onion_create(const tal_t *ctx,
|
|
secp256k1_context *secpctx,
|
|
struct node_connection **path,
|
|
u64 msatoshi, s64 fees);
|
|
#endif /* LIGHTNING_DAEMON_ONION_H */
|