mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
2d09af8d56
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
30 lines
1.1 KiB
C
30 lines
1.1 KiB
C
#ifndef LIGHTNING_GOSSIPD_SIGCHECK_H
|
|
#define LIGHTNING_GOSSIPD_SIGCHECK_H
|
|
#include "config.h"
|
|
#include <common/node_id.h>
|
|
|
|
/* Returns error msg if signature wrong, else NULL */
|
|
const char *sigcheck_channel_update(const tal_t *ctx,
|
|
const struct node_id *node_id,
|
|
const secp256k1_ecdsa_signature *node_sig,
|
|
const u8 *update);
|
|
|
|
/* Returns error msg if signature wrong, else NULL */
|
|
const char *sigcheck_channel_announcement(const tal_t *ctx,
|
|
const struct node_id *node1_id,
|
|
const struct node_id *node2_id,
|
|
const struct pubkey *bitcoin1_key,
|
|
const struct pubkey *bitcoin2_key,
|
|
const secp256k1_ecdsa_signature *node1_sig,
|
|
const secp256k1_ecdsa_signature *node2_sig,
|
|
const secp256k1_ecdsa_signature *bitcoin1_sig,
|
|
const secp256k1_ecdsa_signature *bitcoin2_sig,
|
|
const u8 *announcement);
|
|
|
|
/* Returns error msg if signature wrong, else NULL */
|
|
const char *sigcheck_node_announcement(const tal_t *ctx,
|
|
const struct node_id *node_id,
|
|
const secp256k1_ecdsa_signature *node_sig,
|
|
const u8 *node_announcement);
|
|
#endif /* LIGHTNING_GOSSIPD_SIGCHECK_H */
|