@@ -188,51 +188,6 @@ typedef int (*secp256k1_nonce_function)(
188
188
*/
189
189
SECP256K1_API extern const secp256k1_context * secp256k1_context_no_precomp ;
190
190
191
- /** Create a secp256k1 context object (in dynamically allocated memory).
192
- *
193
- * This function uses malloc to allocate memory. It is guaranteed that malloc is
194
- * called at most once for every call of this function. If you need to avoid dynamic
195
- * memory allocation entirely, see the functions in secp256k1_preallocated.h.
196
- *
197
- * Returns: a newly created context object.
198
- * In: flags: which parts of the context to initialize.
199
- *
200
- * See also secp256k1_context_randomize.
201
- */
202
- SECP256K1_API secp256k1_context * secp256k1_context_create (
203
- unsigned int flags
204
- ) SECP256K1_WARN_UNUSED_RESULT ;
205
-
206
- /** Copy a secp256k1 context object (into dynamically allocated memory).
207
- *
208
- * This function uses malloc to allocate memory. It is guaranteed that malloc is
209
- * called at most once for every call of this function. If you need to avoid dynamic
210
- * memory allocation entirely, see the functions in secp256k1_preallocated.h.
211
- *
212
- * Returns: a newly created context object.
213
- * Args: ctx: an existing context to copy (cannot be NULL)
214
- */
215
- SECP256K1_API secp256k1_context * secp256k1_context_clone (
216
- const secp256k1_context * ctx
217
- ) SECP256K1_ARG_NONNULL (1 ) SECP256K1_WARN_UNUSED_RESULT ;
218
-
219
- /** Destroy a secp256k1 context object (created in dynamically allocated memory).
220
- *
221
- * The context pointer may not be used afterwards.
222
- *
223
- * The context to destroy must have been created using secp256k1_context_create
224
- * or secp256k1_context_clone. If the context has instead been created using
225
- * secp256k1_context_preallocated_create or secp256k1_context_preallocated_clone, the
226
- * behaviour is undefined. In that case, secp256k1_context_preallocated_destroy must
227
- * be used instead.
228
- *
229
- * Args: ctx: an existing context to destroy, constructed using
230
- * secp256k1_context_create or secp256k1_context_clone
231
- */
232
- SECP256K1_API void secp256k1_context_destroy (
233
- secp256k1_context * ctx
234
- );
235
-
236
191
/** Set a callback function to be called when an illegal argument is passed to
237
192
* an API call. It will only trigger for violations that are mentioned
238
193
* explicitly in the header.
@@ -301,28 +256,6 @@ SECP256K1_API void secp256k1_context_set_error_callback(
301
256
const void * data
302
257
) SECP256K1_ARG_NONNULL (1 );
303
258
304
- /** Create a secp256k1 scratch space object.
305
- *
306
- * Returns: a newly created scratch space.
307
- * Args: ctx: an existing context object (cannot be NULL)
308
- * In: size: amount of memory to be available as scratch space. Some extra
309
- * (<100 bytes) will be allocated for extra accounting.
310
- */
311
- SECP256K1_API SECP256K1_WARN_UNUSED_RESULT secp256k1_scratch_space * secp256k1_scratch_space_create (
312
- const secp256k1_context * ctx ,
313
- size_t size
314
- ) SECP256K1_ARG_NONNULL (1 );
315
-
316
- /** Destroy a secp256k1 scratch space.
317
- *
318
- * The pointer may not be used afterwards.
319
- * Args: ctx: a secp256k1 context object.
320
- * scratch: space to destroy
321
- */
322
- SECP256K1_API void secp256k1_scratch_space_destroy (
323
- const secp256k1_context * ctx ,
324
- secp256k1_scratch_space * scratch
325
- ) SECP256K1_ARG_NONNULL (1 );
326
259
327
260
/** Parse a variable-length public key into the pubkey object.
328
261
*
0 commit comments