@@ -49,19 +49,6 @@ extern "C" {
49
49
*/
50
50
typedef struct secp256k1_context_struct secp256k1_context ;
51
51
52
- /** Opaque data structure that holds rewritable "scratch space"
53
- *
54
- * The purpose of this structure is to replace dynamic memory allocations,
55
- * because we target architectures where this may not be available. It is
56
- * essentially a resizable (within specified parameters) block of bytes,
57
- * which is initially created either by memory allocation or TODO as a pointer
58
- * into some fixed rewritable space.
59
- *
60
- * Unlike the context object, this cannot safely be shared between threads
61
- * without additional synchronization logic.
62
- */
63
- typedef struct secp256k1_scratch_space_struct secp256k1_scratch_space ;
64
-
65
52
/** Opaque data structure that holds a parsed and valid public key.
66
53
*
67
54
* The exact representation of data inside is implementation defined and not
@@ -392,29 +379,6 @@ SECP256K1_API void secp256k1_context_set_error_callback(
392
379
const void * data
393
380
) SECP256K1_ARG_NONNULL (1 );
394
381
395
- /** Create a secp256k1 scratch space object.
396
- *
397
- * Returns: a newly created scratch space.
398
- * Args: ctx: pointer to a context object.
399
- * In: size: amount of memory to be available as scratch space. Some extra
400
- * (<100 bytes) will be allocated for extra accounting.
401
- */
402
- SECP256K1_API SECP256K1_WARN_UNUSED_RESULT secp256k1_scratch_space * secp256k1_scratch_space_create (
403
- const secp256k1_context * ctx ,
404
- size_t size
405
- ) SECP256K1_ARG_NONNULL (1 );
406
-
407
- /** Destroy a secp256k1 scratch space.
408
- *
409
- * The pointer may not be used afterwards.
410
- * Args: ctx: pointer to a context object.
411
- * scratch: space to destroy
412
- */
413
- SECP256K1_API void secp256k1_scratch_space_destroy (
414
- const secp256k1_context * ctx ,
415
- secp256k1_scratch_space * scratch
416
- ) SECP256K1_ARG_NONNULL (1 );
417
-
418
382
/** Parse a variable-length public key into the pubkey object.
419
383
*
420
384
* Returns: 1 if the public key was fully valid.
0 commit comments