scratch space: thread error_callback into all scratch space functions

Use it when checking magic bytes
This commit is contained in:
Andrew Poelstra committed 2019-05-25 22:59:50 +00:00
1 parent 0be1a4ae62
commit c2b028a281
9 files changed
+130 -104

No files matched your search

+4 -2
View File
@@ -295,11 +295,13 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT secp256k1_scratch_space* secp256k1_sc
/** Destroy a secp256k1 scratch space.
*
* The pointer may not be used afterwards.
* Args: scratch: space to destroy
* Args: ctx: a secp256k1 context object.
* scratch: space to destroy
*/
SECP256K1_API void secp256k1_scratch_space_destroy(
const secp256k1_context* ctx,
secp256k1_scratch_space* scratch
);
) SECP256K1_ARG_NONNULL(1);
/** Parse a variable-length public key into the pubkey object.
*