2023-07-21 02:23:26 +02:00
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_RUNES_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_RUNES_H
|
|
|
|
#include "config.h"
|
|
|
|
|
2023-07-25 03:49:43 +02:00
|
|
|
struct rune;
|
|
|
|
|
|
|
|
/* Initialize ld->runes enough for rune_is_ours(): needs HSM. */
|
|
|
|
struct runes *runes_early_init(struct lightningd *ld);
|
|
|
|
|
|
|
|
/* Finish it: needs db. */
|
|
|
|
void runes_finish_init(struct runes *runes);
|
|
|
|
|
|
|
|
/* Is this rune one of ours? Needed for commando migration.
|
|
|
|
* Returns NULL if it is, or a string explaining (usually, "Not derived from master").
|
|
|
|
*/
|
|
|
|
const char *rune_is_ours(struct lightningd *ld, const struct rune *rune);
|
2023-07-21 02:23:26 +02:00
|
|
|
|
2023-09-12 02:52:44 +02:00
|
|
|
/* Get unique id number of rune. */
|
|
|
|
u64 rune_unique_id(const struct rune *rune);
|
|
|
|
|
2023-07-21 02:23:26 +02:00
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_RUNES_H */
|