mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-07 14:29:33 +01:00
ed46dd355d
This lets us test interaction with python code, for example. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
20 lines
326 B
C
20 lines
326 B
C
#ifndef ONION_KEY_H
|
|
#define ONION_KEY_H
|
|
#include <ccan/endian/endian.h>
|
|
#include "bitcoin/privkey.h"
|
|
|
|
struct seckey {
|
|
union {
|
|
struct privkey k;
|
|
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 */
|