PRCYCoin  2.0.0.7rc1
P2P Digital Currency
secp256k1_generator.h
Go to the documentation of this file.
1 #ifndef _SECP256K1_GENERATOR_
2 # define _SECP256K1_GENERATOR_
3 
4 # include "secp256k1_2.h"
5 
6 # ifdef __cplusplus
7 extern "C" {
8 # endif
9 
10 #include <stdint.h>
11 
20 typedef struct {
21  unsigned char data[64];
23 
26 
29 
38  const secp256k1_context2* ctx,
39  secp256k1_generator* commit,
40  const unsigned char *input
42 
51  const secp256k1_context2* ctx,
52  unsigned char *output,
53  const secp256k1_generator* commit
55 
70  const secp256k1_context2* ctx,
72  const unsigned char *seed32
74 
89  const secp256k1_context2* ctx,
91  const unsigned char *key32,
92  const unsigned char *blind32
94 
95 # ifdef __cplusplus
96 }
97 # endif
98 
99 #endif
secp256k1_generator_generate_blinded
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_generator_generate_blinded(const secp256k1_context2 *ctx, secp256k1_generator *gen, const unsigned char *key32, const unsigned char *blind32) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4)
Generate a blinded generator for the curve.
Definition: main_impl.h:238
SECP256K1_API
#define SECP256K1_API
Definition: secp256k1_2.h:139
secp256k1_generator
Opaque data structure that stores a base point.
Definition: secp256k1_generator.h:20
secp256k1_generator_parse
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_generator_parse(const secp256k1_context2 *ctx, secp256k1_generator *commit, const unsigned char *input) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3)
Parse a 33-byte generator byte sequence into a generator object.
Definition: main_impl.h:57
SECP256K1_WARN_UNUSED_RESULT
#define SECP256K1_WARN_UNUSED_RESULT
Warning attributes NONNULL is not used if SECP256K1_BUILD is set to avoid the compiler optimizing out...
Definition: secp256k1.h:35
secp256k1_generator_serialize
SECP256K1_API int secp256k1_generator_serialize(const secp256k1_context2 *ctx, unsigned char *output, const secp256k1_generator *commit) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3)
Serialize a 33-byte generator into a serialized byte sequence.
Definition: main_impl.h:77
secp256k1_context_struct2
Definition: secp256k1_types.h:15
secp256k1_generator_const_g
const SECP256K1_API secp256k1_generator secp256k1_generator_const_g
Standard secp256k1 generator G.
Definition: main_impl.h:18
secp256k1_generator_const_h
const SECP256K1_API secp256k1_generator secp256k1_generator_const_h
Alternate secp256k1 generator from Elements Alpha.
Definition: main_impl.h:32
secp256k1_2.h
SECP256K1_ARG_NONNULL
#define SECP256K1_ARG_NONNULL(_x)
Definition: secp256k1.h:40
secp256k1_generator_generate
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_generator_generate(const secp256k1_context2 *ctx, secp256k1_generator *gen, const unsigned char *seed32) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3)
Generate a generator for the curve.
Definition: main_impl.h:231