mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
Move signature <-> proto conversions to signature.c, check lower bit.
Make sure signature can be used by bitcoin. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
4
pkt.h
4
pkt.h
@@ -70,9 +70,7 @@ struct pkt *open_commit_sig_pkt(const tal_t *ctx, const struct signature *sig);
|
||||
Sha256Hash *sha256_to_proto(const tal_t *ctx, const struct sha256 *hash);
|
||||
void proto_to_sha256(const Sha256Hash *pb, struct sha256 *hash);
|
||||
|
||||
Signature *signature_to_proto(const tal_t *ctx, const struct signature *sig);
|
||||
void proto_to_signature(const Signature *pb, struct signature *sig);
|
||||
|
||||
BitcoinPubkey *pubkey_to_proto(const tal_t *ctx,
|
||||
const struct bitcoin_compressed_pubkey *key);
|
||||
|
||||
#endif /* LIGHTNING_PKT_H */
|
||||
|
||||
Reference in New Issue
Block a user