mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
onion_key: allowing both odd and even pubkeys
output compressed public keys; accept compressed pubkey in test_onion
This commit is contained in:
@@ -11,6 +11,11 @@ struct seckey {
|
||||
} u;
|
||||
};
|
||||
|
||||
/* First byte is 0x02 or 0x03 indicating even or odd y */
|
||||
struct compressed_pubkey {
|
||||
unsigned char u8[33];
|
||||
};
|
||||
|
||||
/* Prepend 0x02 to get pubkey for libsecp256k1 */
|
||||
struct onion_pubkey {
|
||||
unsigned char u8[32];
|
||||
|
||||
Reference in New Issue
Block a user