Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/include/secp256k1_recovery.h
#ifndef _SECP256K1_RECOVERY_ | #ifndef SECP256K1_RECOVERY_H | ||||
# define _SECP256K1_RECOVERY_ | #define SECP256K1_RECOVERY_H | ||||
# include "secp256k1.h" | #include "secp256k1.h" | ||||
# ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" { | extern "C" { | ||||
# endif | #endif | ||||
/** Opaque data structured that holds a parsed ECDSA signature, | /** Opaque data structured that holds a parsed ECDSA signature, | ||||
* supporting pubkey recovery. | * supporting pubkey recovery. | ||||
* | * | ||||
* The exact representation of data inside is implementation defined and not | * The exact representation of data inside is implementation defined and not | ||||
* guaranteed to be portable between different platforms or versions. It is | * guaranteed to be portable between different platforms or versions. It is | ||||
* however guaranteed to be 65 bytes in size, and can be safely copied/moved. | * however guaranteed to be 65 bytes in size, and can be safely copied/moved. | ||||
* If you need to convert to a format suitable for storage or transmission, use | * If you need to convert to a format suitable for storage or transmission, use | ||||
▲ Show 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ecdsa_recover( | SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ecdsa_recover( | ||||
const secp256k1_context* ctx, | const secp256k1_context* ctx, | ||||
secp256k1_pubkey *pubkey, | secp256k1_pubkey *pubkey, | ||||
const secp256k1_ecdsa_recoverable_signature *sig, | const secp256k1_ecdsa_recoverable_signature *sig, | ||||
const unsigned char *msg32 | const unsigned char *msg32 | ||||
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4); | ) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4); | ||||
# ifdef __cplusplus | #ifdef __cplusplus | ||||
} | } | ||||
# endif | #endif | ||||
#endif | #endif /* SECP256K1_RECOVERY_H */ |