#ifndef LIGHTNING_PUBKEY_H #define LIGHTNING_PUBKEY_H #include #include #include "lightning.pb-c.h" struct pubkey { u8 key[65]; }; /* Convert to-from protobuf to internal representation. */ BitcoinPubkey *pubkey_to_proto(const tal_t *ctx, const struct pubkey *key); bool proto_to_pubkey(const BitcoinPubkey *pb, struct pubkey *key); /* 33 or 65 bytes? */ size_t pubkey_len(const struct pubkey *key); #endif /* LIGHTNING_PUBKEY_H */