2017-08-28 18:06:01 +02:00
|
|
|
#ifndef LIGHTNING_COMMON_BIP32_H
|
|
|
|
#define LIGHTNING_COMMON_BIP32_H
|
2017-08-18 06:43:52 +02:00
|
|
|
#include "config.h"
|
|
|
|
#include <ccan/short_types/short_types.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
struct ext_key;
|
|
|
|
|
|
|
|
void towire_ext_key(u8 **pptr, const struct ext_key *bip32);
|
|
|
|
void fromwire_ext_key(const u8 **cursor, size_t *max, struct ext_key *bip32);
|
|
|
|
|
2020-05-16 03:29:05 +02:00
|
|
|
struct bip32_key_version {
|
|
|
|
u32 bip32_pubkey_version;
|
|
|
|
u32 bip32_privkey_version;
|
|
|
|
};
|
|
|
|
|
|
|
|
void towire_bip32_key_version(u8 **cursor, const struct bip32_key_version *version);
|
|
|
|
void fromwire_bip32_key_version(const u8 **cursor, size_t *max,
|
|
|
|
struct bip32_key_version *version);
|
|
|
|
|
2017-08-28 18:06:01 +02:00
|
|
|
#endif /* LIGHTNING_COMMON_BIP32_H */
|