core-lightning/test/onion_key.h
Rusty Russell 9aa8907e38 test_onion: Rename struct pubkey to struct onion_pubkey.
And move to onion_key.h for next patch.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2015-10-06 12:03:03 +10:30

18 lines
277 B
C

#ifndef ONION_KEY_H
#define ONION_KEY_H
#include <ccan/endian/endian.h>
struct seckey {
union {
unsigned char u8[32];
beint64_t be64[4];
} u;
};
/* Prepend 0x02 to get pubkey for libsecp256k1 */
struct onion_pubkey {
unsigned char u8[32];
};
#endif /* ONION_KEY_H */