Browse Source
And move to onion_key.h for next patch. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>ppa-0.6.1
Rusty Russell
9 years ago
2 changed files with 22 additions and 16 deletions
@ -0,0 +1,17 @@ |
|||
#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 */ |
Loading…
Reference in new issue