2017-06-20 07:45:03 +02:00
|
|
|
/* All about the HTLCs/commitment transactions for a particular peer. */
|
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_PEER_HTLCS_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_PEER_HTLCS_H
|
|
|
|
#include "config.h"
|
|
|
|
#include <ccan/short_types/short_types.h>
|
|
|
|
|
2017-06-20 07:55:03 +02:00
|
|
|
/* FIXME: Define serialization primitive for this? */
|
|
|
|
struct channel_info {
|
|
|
|
secp256k1_ecdsa_signature commit_sig;
|
|
|
|
struct channel_config their_config;
|
|
|
|
struct pubkey remote_fundingkey;
|
|
|
|
struct basepoints theirbase;
|
|
|
|
struct pubkey their_per_commit_point;
|
|
|
|
};
|
|
|
|
|
2017-06-20 07:50:03 +02:00
|
|
|
int peer_sending_commitsig(struct peer *peer, const u8 *msg);
|
|
|
|
int peer_got_commitsig(struct peer *peer, const u8 *msg);
|
|
|
|
int peer_got_revoke(struct peer *peer, const u8 *msg);
|
2017-06-20 07:45:03 +02:00
|
|
|
|
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_PEER_HTLCS_H */
|