Skip to content

Commit bb1070b

Browse files
committed
Update patch files to v0.6
1 parent 7544bb0 commit bb1070b

File tree

4 files changed

+9
-15
lines changed

4 files changed

+9
-15
lines changed

secp256k1-sys/depend/scratch.h.patch

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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+
<

secp256k1-sys/depend/secp256k1.c.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@
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);

secp256k1-sys/depend/secp256k1.h.patch

-12
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,6 @@
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-
<
3321
636d610
3422
< SECP256K1_API const secp256k1_nonce_function secp256k1_nonce_function_rfc6979;
3523
639d612

secp256k1-sys/vendor-libsecp.sh

+1
Original file line numberDiff line numberDiff 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.
9797
patch "$DIR/include/secp256k1.h" "./secp256k1.h.patch"
9898
patch "$DIR/src/secp256k1.c" "./secp256k1.c.patch"
99+
patch "$DIR/src/scratch.h" "./scratch.h.patch"
99100
patch "$DIR/src/scratch_impl.h" "./scratch_impl.h.patch"
100101
patch "$DIR/src/util.h" "./util.h.patch"
101102

0 commit comments

Comments
 (0)