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:
Rusty Russell
2015-06-02 11:53:59 +09:30
parent 7c977a7633
commit 07c7214edb
12 changed files with 105 additions and 43 deletions

View File

@@ -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]);