Electroneum
Toggle main menu visibility
Loading...
Searching...
No Matches
secp256k1_recovery.h
Go to the documentation of this file.
1
#ifndef SECP256K1_RECOVERY_H
2
#define SECP256K1_RECOVERY_H
3
4
#include "
secp256k1.h
"
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
24
typedef
struct
{
25
unsigned
char
data
[65];
26
}
secp256k1_ecdsa_recoverable_signature
;
27
36
SECP256K1_API
int
secp256k1_ecdsa_recoverable_signature_parse_compact
(
37
const
secp256k1_context
* ctx,
38
secp256k1_ecdsa_recoverable_signature
* sig,
39
const
unsigned
char
*input64,
40
int
recid
41
)
SECP256K1_ARG_NONNULL
(1)
SECP256K1_ARG_NONNULL
(2)
SECP256K1_ARG_NONNULL
(3);
42
50
SECP256K1_API
int
secp256k1_ecdsa_recoverable_signature_convert
(
51
const
secp256k1_context
* ctx,
52
secp256k1_ecdsa_signature
* sig,
53
const
secp256k1_ecdsa_recoverable_signature
* sigin
54
)
SECP256K1_ARG_NONNULL
(1)
SECP256K1_ARG_NONNULL
(2)
SECP256K1_ARG_NONNULL
(3);
55
64
SECP256K1_API
int
secp256k1_ecdsa_recoverable_signature_serialize_compact
(
65
const
secp256k1_context
* ctx,
66
unsigned
char
*output64,
67
int
*recid,
68
const
secp256k1_ecdsa_recoverable_signature
* sig
69
)
SECP256K1_ARG_NONNULL
(1)
SECP256K1_ARG_NONNULL
(2)
SECP256K1_ARG_NONNULL
(3)
SECP256K1_ARG_NONNULL
(4);
70
84
SECP256K1_API
int
secp256k1_ecdsa_sign_recoverable
(
85
const
secp256k1_context
* ctx,
86
secp256k1_ecdsa_recoverable_signature
*sig,
87
const
unsigned
char
*msghash32,
88
const
unsigned
char
*seckey,
89
secp256k1_nonce_function
noncefp,
90
const
void
*ndata
91
)
SECP256K1_ARG_NONNULL
(1)
SECP256K1_ARG_NONNULL
(2)
SECP256K1_ARG_NONNULL
(3)
SECP256K1_ARG_NONNULL
(4);
92
102
SECP256K1_API
SECP256K1_WARN_UNUSED_RESULT
int
secp256k1_ecdsa_recover
(
103
const
secp256k1_context
* ctx,
104
secp256k1_pubkey
*pubkey,
105
const
secp256k1_ecdsa_recoverable_signature
*sig,
106
const
unsigned
char
*msghash32
107
)
SECP256K1_ARG_NONNULL
(1)
SECP256K1_ARG_NONNULL
(2)
SECP256K1_ARG_NONNULL
(3)
SECP256K1_ARG_NONNULL
(4);
108
109
#ifdef __cplusplus
110
}
111
#endif
112
113
#endif
/* SECP256K1_RECOVERY_H */
secp256k1.h
SECP256K1_ARG_NONNULL
#define SECP256K1_ARG_NONNULL(_x)
Definition
secp256k1.h:177
secp256k1_context
struct secp256k1_context_struct secp256k1_context
Definition
secp256k1.h:50
SECP256K1_API
#define SECP256K1_API
Definition
secp256k1.h:162
secp256k1_nonce_function
int(* secp256k1_nonce_function)(unsigned char *nonce32, const unsigned char *msg32, const unsigned char *key32, const unsigned char *algo16, void *data, unsigned int attempt)
Definition
secp256k1.h:107
SECP256K1_WARN_UNUSED_RESULT
#define SECP256K1_WARN_UNUSED_RESULT
Definition
secp256k1.h:172
secp256k1_ecdsa_recoverable_signature_serialize_compact
SECP256K1_API int secp256k1_ecdsa_recoverable_signature_serialize_compact(const secp256k1_context *ctx, unsigned char *output64, int *recid, const secp256k1_ecdsa_recoverable_signature *sig) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4)
Definition
main_impl.h:60
secp256k1_ecdsa_recoverable_signature_parse_compact
SECP256K1_API int secp256k1_ecdsa_recoverable_signature_parse_compact(const secp256k1_context *ctx, secp256k1_ecdsa_recoverable_signature *sig, const unsigned char *input64, int recid) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3)
Definition
main_impl.h:38
secp256k1_ecdsa_sign_recoverable
SECP256K1_API int secp256k1_ecdsa_sign_recoverable(const secp256k1_context *ctx, secp256k1_ecdsa_recoverable_signature *sig, const unsigned char *msghash32, const unsigned char *seckey, secp256k1_nonce_function noncefp, const void *ndata) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4)
Definition
main_impl.h:123
secp256k1_ecdsa_recoverable_signature_convert
SECP256K1_API int secp256k1_ecdsa_recoverable_signature_convert(const secp256k1_context *ctx, secp256k1_ecdsa_signature *sig, const secp256k1_ecdsa_recoverable_signature *sigin) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3)
Definition
main_impl.h:74
secp256k1_ecdsa_recover
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ecdsa_recover(const secp256k1_context *ctx, secp256k1_pubkey *pubkey, const secp256k1_ecdsa_recoverable_signature *sig, const unsigned char *msghash32) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4)
Definition
main_impl.h:137
secp256k1_ecdsa_recoverable_signature
Definition
secp256k1_recovery.h:24
secp256k1_ecdsa_recoverable_signature::data
unsigned char data[65]
Definition
secp256k1_recovery.h:25
secp256k1_ecdsa_signature
Definition
secp256k1.h:87
secp256k1_pubkey
Definition
secp256k1.h:74
external
secp256k1
include
secp256k1_recovery.h
Generated on
for Electroneum by
1.17.0