File tree 4 files changed +9
-15
lines changed
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 37
37
< free(ctx);
38
38
< }
39
39
<
40
- 220,229d183
40
+ 223,232d185
41
41
< }
42
42
<
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) {
44
44
< VERIFY_CHECK(ctx != NULL);
45
45
< return secp256k1_scratch_create(&ctx->error_callback, max_size);
46
46
< }
47
47
<
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) {
49
49
< VERIFY_CHECK(ctx != NULL);
50
50
< secp256k1_scratch_destroy(&ctx->error_callback, scratch);
Original file line number Diff line number Diff line change 18
18
< secp256k1_context *ctx
19
19
< ) SECP256K1_ARG_NONNULL(1);
20
20
<
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
- <
33
21
636d610
34
22
< SECP256K1_API const secp256k1_nonce_function secp256k1_nonce_function_rfc6979;
35
23
639d612
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ echo "$SOURCE_REV" >> ./secp256k1-HEAD-revision.txt
96
96
# To compensate, the secp_context_create and _destroy methods are redefined in Rust.
97
97
patch " $DIR /include/secp256k1.h" " ./secp256k1.h.patch"
98
98
patch " $DIR /src/secp256k1.c" " ./secp256k1.c.patch"
99
+ patch " $DIR /src/scratch.h" " ./scratch.h.patch"
99
100
patch " $DIR /src/scratch_impl.h" " ./scratch_impl.h.patch"
100
101
patch " $DIR /src/util.h" " ./util.h.patch"
101
102
You can’t perform that action at this time.
0 commit comments