File tree Expand file tree Collapse file tree 4 files changed +9
-15
lines changed Expand file tree Collapse file tree 4 files changed +9
-15
lines changed Original file line number Diff line number Diff line change 1+ 26,29d25
2+ < static secp256k1_scratch* secp256k1_scratch_create(const secp256k1_callback* error_callback, size_t max_size);
3+ <
4+ < static void secp256k1_scratch_destroy(const secp256k1_callback* error_callback, secp256k1_scratch* scratch);
5+ <
Original file line number Diff line number Diff line change 3737< free(ctx);
3838< }
3939<
40- 220,229d183
40+ 223,232d185
4141< }
4242<
43- < secp256k1_scratch_space* secp256k1_scratch_space_create(const secp256k1_context* ctx, size_t max_size) {
43+ < static secp256k1_scratch_space* secp256k1_scratch_space_create(const secp256k1_context* ctx, size_t max_size) {
4444< VERIFY_CHECK(ctx != NULL);
4545< return secp256k1_scratch_create(&ctx->error_callback, max_size);
4646< }
4747<
48- < void secp256k1_scratch_space_destroy(const secp256k1_context *ctx, secp256k1_scratch_space* scratch) {
48+ < static void secp256k1_scratch_space_destroy(const secp256k1_context *ctx, secp256k1_scratch_space* scratch) {
4949< VERIFY_CHECK(ctx != NULL);
5050< secp256k1_scratch_destroy(&ctx->error_callback, scratch);
Original file line number Diff line number Diff line change 1818< secp256k1_context *ctx
1919< ) SECP256K1_ARG_NONNULL(1);
2020<
21- 402,406d386
22- < SECP256K1_API SECP256K1_WARN_UNUSED_RESULT secp256k1_scratch_space *secp256k1_scratch_space_create(
23- < const secp256k1_context *ctx,
24- < size_t size
25- < ) SECP256K1_ARG_NONNULL(1);
26- <
27- 413,417d392
28- < SECP256K1_API void secp256k1_scratch_space_destroy(
29- < const secp256k1_context *ctx,
30- < secp256k1_scratch_space *scratch
31- < ) SECP256K1_ARG_NONNULL(1);
32- <
3321636d610
3422< SECP256K1_API const secp256k1_nonce_function secp256k1_nonce_function_rfc6979;
3523639d612
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ echo "$SOURCE_REV" >> ./secp256k1-HEAD-revision.txt
9696# To compensate, the secp_context_create and _destroy methods are redefined in Rust.
9797patch " $DIR /include/secp256k1.h" " ./secp256k1.h.patch"
9898patch " $DIR /src/secp256k1.c" " ./secp256k1.c.patch"
99+ patch " $DIR /src/scratch.h" " ./scratch.h.patch"
99100patch " $DIR /src/scratch_impl.h" " ./scratch_impl.h.patch"
100101patch " $DIR /src/util.h" " ./util.h.patch"
101102
You can’t perform that action at this time.
0 commit comments