|
1 |
| -226,228d225 |
2 |
| -< SECP256K1_API secp256k1_context* secp256k1_context_create( |
3 |
| -< unsigned int flags |
4 |
| -< ) SECP256K1_WARN_UNUSED_RESULT; |
5 |
| -231,233d227 |
6 |
| -< SECP256K1_API secp256k1_context* secp256k1_context_clone( |
7 |
| -< const secp256k1_context* ctx |
8 |
| -< ) SECP256K1_ARG_NONNULL(1) SECP256K1_WARN_UNUSED_RESULT; |
9 |
| -248,250d241 |
10 |
| -< SECP256K1_API void secp256k1_context_destroy( |
11 |
| -< secp256k1_context* ctx |
12 |
| -< ) SECP256K1_ARG_NONNULL(1); |
13 |
| -327,330d317 |
14 |
| -< SECP256K1_API SECP256K1_WARN_UNUSED_RESULT secp256k1_scratch_space* secp256k1_scratch_space_create( |
15 |
| -< const secp256k1_context* ctx, |
16 |
| -< size_t size |
17 |
| -< ) SECP256K1_ARG_NONNULL(1); |
18 |
| -338,341d324 |
19 |
| -< SECP256K1_API void secp256k1_scratch_space_destroy( |
20 |
| -< const secp256k1_context* ctx, |
21 |
| -< secp256k1_scratch_space* scratch |
22 |
| -< ) SECP256K1_ARG_NONNULL(1); |
| 1 | +diff --git a/secp256k1-zkp-sys/depend/secp256k1/include/secp256k1.h b/secp256k1-zkp-sys/depend/secp256k1/include/secp256k1.h |
| 2 | +index f4053f2..aa2d18b 100644 |
| 3 | +--- a/secp256k1-zkp-sys/depend/secp256k1/include/secp256k1.h |
| 4 | ++++ b/secp256k1-zkp-sys/depend/secp256k1/include/secp256k1.h |
| 5 | +@@ -257,70 +257,6 @@ SECP256K1_DEPRECATED("Use secp256k1_context_static instead"); |
| 6 | + */ |
| 7 | + SECP256K1_API void secp256k1_selftest(void); |
| 8 | + |
| 9 | +- |
| 10 | +-/** Create a secp256k1 context object (in dynamically allocated memory). |
| 11 | +- * |
| 12 | +- * This function uses malloc to allocate memory. It is guaranteed that malloc is |
| 13 | +- * called at most once for every call of this function. If you need to avoid dynamic |
| 14 | +- * memory allocation entirely, see secp256k1_context_static and the functions in |
| 15 | +- * secp256k1_preallocated.h. |
| 16 | +- * |
| 17 | +- * Returns: pointer to a newly created context object. |
| 18 | +- * In: flags: Always set to SECP256K1_CONTEXT_NONE (see below). |
| 19 | +- * |
| 20 | +- * The only valid non-deprecated flag in recent library versions is |
| 21 | +- * SECP256K1_CONTEXT_NONE, which will create a context sufficient for all functionality |
| 22 | +- * offered by the library. All other (deprecated) flags will be treated as equivalent |
| 23 | +- * to the SECP256K1_CONTEXT_NONE flag. Though the flags parameter primarily exists for |
| 24 | +- * historical reasons, future versions of the library may introduce new flags. |
| 25 | +- * |
| 26 | +- * If the context is intended to be used for API functions that perform computations |
| 27 | +- * involving secret keys, e.g., signing and public key generation, then it is highly |
| 28 | +- * recommended to call secp256k1_context_randomize on the context before calling |
| 29 | +- * those API functions. This will provide enhanced protection against side-channel |
| 30 | +- * leakage, see secp256k1_context_randomize for details. |
| 31 | +- * |
| 32 | +- * Do not create a new context object for each operation, as construction and |
| 33 | +- * randomization can take non-negligible time. |
| 34 | +- */ |
| 35 | +-SECP256K1_API secp256k1_context *secp256k1_context_create( |
| 36 | +- unsigned int flags |
| 37 | +-) SECP256K1_WARN_UNUSED_RESULT; |
| 38 | +- |
| 39 | +-/** Copy a secp256k1 context object (into dynamically allocated memory). |
| 40 | +- * |
| 41 | +- * This function uses malloc to allocate memory. It is guaranteed that malloc is |
| 42 | +- * called at most once for every call of this function. If you need to avoid dynamic |
| 43 | +- * memory allocation entirely, see the functions in secp256k1_preallocated.h. |
| 44 | +- * |
| 45 | +- * Cloning secp256k1_context_static is not possible, and should not be emulated by |
| 46 | +- * the caller (e.g., using memcpy). Create a new context instead. |
| 47 | +- * |
| 48 | +- * Returns: pointer to a newly created context object. |
| 49 | +- * Args: ctx: pointer to a context to copy (not secp256k1_context_static). |
| 50 | +- */ |
| 51 | +-SECP256K1_API secp256k1_context *secp256k1_context_clone( |
| 52 | +- const secp256k1_context *ctx |
| 53 | +-) SECP256K1_ARG_NONNULL(1) SECP256K1_WARN_UNUSED_RESULT; |
| 54 | +- |
| 55 | +-/** Destroy a secp256k1 context object (created in dynamically allocated memory). |
| 56 | +- * |
| 57 | +- * The context pointer may not be used afterwards. |
| 58 | +- * |
| 59 | +- * The context to destroy must have been created using secp256k1_context_create |
| 60 | +- * or secp256k1_context_clone. If the context has instead been created using |
| 61 | +- * secp256k1_context_preallocated_create or secp256k1_context_preallocated_clone, the |
| 62 | +- * behaviour is undefined. In that case, secp256k1_context_preallocated_destroy must |
| 63 | +- * be used instead. |
| 64 | +- * |
| 65 | +- * Args: ctx: pointer to a context to destroy, constructed using |
| 66 | +- * secp256k1_context_create or secp256k1_context_clone |
| 67 | +- * (i.e., not secp256k1_context_static). |
| 68 | +- */ |
| 69 | +-SECP256K1_API void secp256k1_context_destroy( |
| 70 | +- secp256k1_context *ctx |
| 71 | +-) SECP256K1_ARG_NONNULL(1); |
| 72 | +- |
| 73 | + /** Set a callback function to be called when an illegal argument is passed to |
| 74 | + * an API call. It will only trigger for violations that are mentioned |
| 75 | + * explicitly in the header. |
| 76 | +@@ -392,29 +328,6 @@ SECP256K1_API void secp256k1_context_set_error_callback( |
| 77 | + const void *data |
| 78 | + ) SECP256K1_ARG_NONNULL(1); |
| 79 | + |
| 80 | +-/** Create a secp256k1 scratch space object. |
| 81 | +- * |
| 82 | +- * Returns: a newly created scratch space. |
| 83 | +- * Args: ctx: pointer to a context object. |
| 84 | +- * In: size: amount of memory to be available as scratch space. Some extra |
| 85 | +- * (<100 bytes) will be allocated for extra accounting. |
| 86 | +- */ |
| 87 | +-SECP256K1_API SECP256K1_WARN_UNUSED_RESULT secp256k1_scratch_space *secp256k1_scratch_space_create( |
| 88 | +- const secp256k1_context *ctx, |
| 89 | +- size_t size |
| 90 | +-) SECP256K1_ARG_NONNULL(1); |
| 91 | +- |
| 92 | +-/** Destroy a secp256k1 scratch space. |
| 93 | +- * |
| 94 | +- * The pointer may not be used afterwards. |
| 95 | +- * Args: ctx: pointer to a context object. |
| 96 | +- * scratch: space to destroy |
| 97 | +- */ |
| 98 | +-SECP256K1_API void secp256k1_scratch_space_destroy( |
| 99 | +- const secp256k1_context *ctx, |
| 100 | +- secp256k1_scratch_space *scratch |
| 101 | +-) SECP256K1_ARG_NONNULL(1); |
| 102 | +- |
| 103 | + /** Parse a variable-length public key into the pubkey object. |
| 104 | + * |
| 105 | + * Returns: 1 if the public key was fully valid. |
0 commit comments