From 39481533e1c7b575a191eff401f9ddba3d86066d Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Mon, 1 Apr 2013 11:34:48 +0200 Subject: [PATCH] Small fix --- src/ecdsa.c | 2 +- src/ecdsa.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ecdsa.c b/src/ecdsa.c index 869c2e9..879e01b 100644 --- a/src/ecdsa.c +++ b/src/ecdsa.c @@ -102,7 +102,7 @@ int static secp256k1_ecdsa_sig_recompute(secp256k1_num_t *r2, const secp256k1_ec return ret; } -int secp256k1_ecdsa_sig_verify(const secp256k1_ecdsa_sig_t *sig, const secp256k1_gej_t *pubkey, const secp256k1_num_t *message) { +int static secp256k1_ecdsa_sig_verify(const secp256k1_ecdsa_sig_t *sig, const secp256k1_gej_t *pubkey, const secp256k1_num_t *message) { secp256k1_num_t r2; secp256k1_num_init(&r2); int ret = 0; diff --git a/src/ecdsa.h b/src/ecdsa.h index c4d82a4..f6f3642 100644 --- a/src/ecdsa.h +++ b/src/ecdsa.h @@ -13,6 +13,7 @@ void static secp256k1_ecdsa_sig_free(secp256k1_ecdsa_sig_t *r); int static secp256k1_ecdsa_pubkey_parse(secp256k1_gej_t *elem, const unsigned char *pub, int size); int static secp256k1_ecdsa_sig_parse(secp256k1_ecdsa_sig_t *r, const unsigned char *sig, int size); int static secp256k1_ecdsa_sig_serialize(unsigned char *sig, int *size, const secp256k1_ecdsa_sig_t *a); +int static secp256k1_ecdsa_sig_verify(const secp256k1_ecdsa_sig_t *sig, const secp256k1_gej_t *pubkey, const secp256k1_num_t *message); int static secp256k1_ecdsa_sig_sign(secp256k1_ecdsa_sig_t *sig, const secp256k1_num_t *seckey, const secp256k1_num_t *message, const secp256k1_num_t *nonce); void static secp256k1_ecdsa_sig_set_rs(secp256k1_ecdsa_sig_t *sig, const secp256k1_num_t *r, const secp256k1_num_t *s);