We only ever send out the public seed. */
| 5 | |
| 6 | /* We only ever send out the public seed. */ |
| 7 | void towire_ext_key(u8 **pptr, const struct ext_key *bip32) |
| 8 | { |
| 9 | unsigned char out[BIP32_SERIALIZED_LEN]; |
| 10 | |
| 11 | if (bip32_key_serialize(bip32, BIP32_FLAG_KEY_PUBLIC, out, |
| 12 | sizeof(out))) |
| 13 | abort(); |
| 14 | |
| 15 | towire(pptr, out, sizeof(out)); |
| 16 | } |
| 17 | |
| 18 | void fromwire_ext_key(const u8 **cursor, size_t *max, struct ext_key *bip32) |
| 19 | { |