Scratch
This commit is contained in:
@@ -42,6 +42,19 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
typedef struct secp256k1_context_struct secp256k1_context;
|
typedef struct secp256k1_context_struct secp256k1_context;
|
||||||
|
|
||||||
|
/** Opaque data structure that holds rewriteable "scratch space"
|
||||||
|
*
|
||||||
|
* The purpose of this structure is to replace dynamic memory allocations,
|
||||||
|
* because we target architectures where this may not be available. It is
|
||||||
|
* essentially a resizable (within specified parameters) block of bytes,
|
||||||
|
* which is initially created either by memory allocation or TODO as a pointer
|
||||||
|
* into some fixed rewritable space.
|
||||||
|
*
|
||||||
|
* Unlike the context object, this cannot safely be shared between threads
|
||||||
|
* without additional synchronization logic.
|
||||||
|
*/
|
||||||
|
typedef struct secp256k1_scratch_space_struct secp256k1_scratch_space;
|
||||||
|
|
||||||
/** Opaque data structure that holds a parsed and valid public key.
|
/** Opaque data structure that holds a parsed and valid public key.
|
||||||
*
|
*
|
||||||
* The exact representation of data inside is implementation defined and not
|
* The exact representation of data inside is implementation defined and not
|
||||||
|
|||||||
Reference in New Issue
Block a user