mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-30 04:14:30 +01:00
Explicit pubkey structure.
This checks that the protobuf is the right form, also handles uncompressed keys (though you shouldn't be using those any more, should you?) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "permute_tx.h"
|
||||
#include "signature.h"
|
||||
#include "commit_tx.h"
|
||||
#include "pubkey.h"
|
||||
#include <openssl/ec.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -31,7 +32,7 @@ int main(int argc, char *argv[])
|
||||
size_t *inmap, *outmap;
|
||||
EC_KEY *privkey;
|
||||
bool testnet;
|
||||
struct bitcoin_compressed_pubkey pubkey;
|
||||
struct pubkey pubkey;
|
||||
|
||||
err_set_progname(argv[0]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user