Skip to content

Commit

Permalink
secp256k1: update to 0.5.0 (#2867)
Browse files Browse the repository at this point in the history
**Summary**
- This release includes algorithmic improvements which increase the
speed of key generation and signing. At the same time, the binary size
has been reduced significantly, which we expect to benefit embedded
users in particular. Moreover, a new function to sort public keys has
been added.

**Test Plan**
- Checked it installed correctly.

**Checklist**

- [X] Package was built and tested against unstable
  • Loading branch information
malfisya authored Jun 12, 2024
2 parents b79cfa4 + 47f1cb0 commit d109967
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 63 deletions.
2 changes: 1 addition & 1 deletion packages/s/secp256k1/abi_libs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
libsecp256k1.so.0
libsecp256k1.so.2
114 changes: 72 additions & 42 deletions packages/s/secp256k1/abi_symbols
Original file line number Diff line number Diff line change
@@ -1,42 +1,72 @@
libsecp256k1.so.0:secp256k1_context_clone
libsecp256k1.so.0:secp256k1_context_create
libsecp256k1.so.0:secp256k1_context_destroy
libsecp256k1.so.0:secp256k1_context_no_precomp
libsecp256k1.so.0:secp256k1_context_preallocated_clone
libsecp256k1.so.0:secp256k1_context_preallocated_clone_size
libsecp256k1.so.0:secp256k1_context_preallocated_create
libsecp256k1.so.0:secp256k1_context_preallocated_destroy
libsecp256k1.so.0:secp256k1_context_preallocated_size
libsecp256k1.so.0:secp256k1_context_randomize
libsecp256k1.so.0:secp256k1_context_set_error_callback
libsecp256k1.so.0:secp256k1_context_set_illegal_callback
libsecp256k1.so.0:secp256k1_ec_privkey_negate
libsecp256k1.so.0:secp256k1_ec_privkey_tweak_add
libsecp256k1.so.0:secp256k1_ec_privkey_tweak_mul
libsecp256k1.so.0:secp256k1_ec_pubkey_combine
libsecp256k1.so.0:secp256k1_ec_pubkey_create
libsecp256k1.so.0:secp256k1_ec_pubkey_negate
libsecp256k1.so.0:secp256k1_ec_pubkey_parse
libsecp256k1.so.0:secp256k1_ec_pubkey_serialize
libsecp256k1.so.0:secp256k1_ec_pubkey_tweak_add
libsecp256k1.so.0:secp256k1_ec_pubkey_tweak_mul
libsecp256k1.so.0:secp256k1_ec_seckey_negate
libsecp256k1.so.0:secp256k1_ec_seckey_tweak_add
libsecp256k1.so.0:secp256k1_ec_seckey_tweak_mul
libsecp256k1.so.0:secp256k1_ec_seckey_verify
libsecp256k1.so.0:secp256k1_ecdsa_recover
libsecp256k1.so.0:secp256k1_ecdsa_recoverable_signature_convert
libsecp256k1.so.0:secp256k1_ecdsa_recoverable_signature_parse_compact
libsecp256k1.so.0:secp256k1_ecdsa_recoverable_signature_serialize_compact
libsecp256k1.so.0:secp256k1_ecdsa_sign
libsecp256k1.so.0:secp256k1_ecdsa_sign_recoverable
libsecp256k1.so.0:secp256k1_ecdsa_signature_normalize
libsecp256k1.so.0:secp256k1_ecdsa_signature_parse_compact
libsecp256k1.so.0:secp256k1_ecdsa_signature_parse_der
libsecp256k1.so.0:secp256k1_ecdsa_signature_serialize_compact
libsecp256k1.so.0:secp256k1_ecdsa_signature_serialize_der
libsecp256k1.so.0:secp256k1_ecdsa_verify
libsecp256k1.so.0:secp256k1_nonce_function_default
libsecp256k1.so.0:secp256k1_nonce_function_rfc6979
libsecp256k1.so.0:secp256k1_scratch_space_create
libsecp256k1.so.0:secp256k1_scratch_space_destroy
libsecp256k1.so.2:secp256k1_context_clone
libsecp256k1.so.2:secp256k1_context_create
libsecp256k1.so.2:secp256k1_context_destroy
libsecp256k1.so.2:secp256k1_context_no_precomp
libsecp256k1.so.2:secp256k1_context_preallocated_clone
libsecp256k1.so.2:secp256k1_context_preallocated_clone_size
libsecp256k1.so.2:secp256k1_context_preallocated_create
libsecp256k1.so.2:secp256k1_context_preallocated_destroy
libsecp256k1.so.2:secp256k1_context_preallocated_size
libsecp256k1.so.2:secp256k1_context_randomize
libsecp256k1.so.2:secp256k1_context_set_error_callback
libsecp256k1.so.2:secp256k1_context_set_illegal_callback
libsecp256k1.so.2:secp256k1_context_static
libsecp256k1.so.2:secp256k1_ec_privkey_negate
libsecp256k1.so.2:secp256k1_ec_privkey_tweak_add
libsecp256k1.so.2:secp256k1_ec_privkey_tweak_mul
libsecp256k1.so.2:secp256k1_ec_pubkey_cmp
libsecp256k1.so.2:secp256k1_ec_pubkey_combine
libsecp256k1.so.2:secp256k1_ec_pubkey_create
libsecp256k1.so.2:secp256k1_ec_pubkey_negate
libsecp256k1.so.2:secp256k1_ec_pubkey_parse
libsecp256k1.so.2:secp256k1_ec_pubkey_serialize
libsecp256k1.so.2:secp256k1_ec_pubkey_sort
libsecp256k1.so.2:secp256k1_ec_pubkey_tweak_add
libsecp256k1.so.2:secp256k1_ec_pubkey_tweak_mul
libsecp256k1.so.2:secp256k1_ec_seckey_negate
libsecp256k1.so.2:secp256k1_ec_seckey_tweak_add
libsecp256k1.so.2:secp256k1_ec_seckey_tweak_mul
libsecp256k1.so.2:secp256k1_ec_seckey_verify
libsecp256k1.so.2:secp256k1_ecdh
libsecp256k1.so.2:secp256k1_ecdh_hash_function_default
libsecp256k1.so.2:secp256k1_ecdh_hash_function_sha256
libsecp256k1.so.2:secp256k1_ecdsa_recover
libsecp256k1.so.2:secp256k1_ecdsa_recoverable_signature_convert
libsecp256k1.so.2:secp256k1_ecdsa_recoverable_signature_parse_compact
libsecp256k1.so.2:secp256k1_ecdsa_recoverable_signature_serialize_compact
libsecp256k1.so.2:secp256k1_ecdsa_sign
libsecp256k1.so.2:secp256k1_ecdsa_sign_recoverable
libsecp256k1.so.2:secp256k1_ecdsa_signature_normalize
libsecp256k1.so.2:secp256k1_ecdsa_signature_parse_compact
libsecp256k1.so.2:secp256k1_ecdsa_signature_parse_der
libsecp256k1.so.2:secp256k1_ecdsa_signature_serialize_compact
libsecp256k1.so.2:secp256k1_ecdsa_signature_serialize_der
libsecp256k1.so.2:secp256k1_ecdsa_verify
libsecp256k1.so.2:secp256k1_ellswift_create
libsecp256k1.so.2:secp256k1_ellswift_decode
libsecp256k1.so.2:secp256k1_ellswift_encode
libsecp256k1.so.2:secp256k1_ellswift_xdh
libsecp256k1.so.2:secp256k1_ellswift_xdh_hash_function_bip324
libsecp256k1.so.2:secp256k1_ellswift_xdh_hash_function_prefix
libsecp256k1.so.2:secp256k1_keypair_create
libsecp256k1.so.2:secp256k1_keypair_pub
libsecp256k1.so.2:secp256k1_keypair_sec
libsecp256k1.so.2:secp256k1_keypair_xonly_pub
libsecp256k1.so.2:secp256k1_keypair_xonly_tweak_add
libsecp256k1.so.2:secp256k1_nonce_function_bip340
libsecp256k1.so.2:secp256k1_nonce_function_default
libsecp256k1.so.2:secp256k1_nonce_function_rfc6979
libsecp256k1.so.2:secp256k1_schnorrsig_sign
libsecp256k1.so.2:secp256k1_schnorrsig_sign32
libsecp256k1.so.2:secp256k1_schnorrsig_sign_custom
libsecp256k1.so.2:secp256k1_schnorrsig_verify
libsecp256k1.so.2:secp256k1_scratch_space_create
libsecp256k1.so.2:secp256k1_scratch_space_destroy
libsecp256k1.so.2:secp256k1_selftest
libsecp256k1.so.2:secp256k1_tagged_sha256
libsecp256k1.so.2:secp256k1_xonly_pubkey_cmp
libsecp256k1.so.2:secp256k1_xonly_pubkey_from_pubkey
libsecp256k1.so.2:secp256k1_xonly_pubkey_parse
libsecp256k1.so.2:secp256k1_xonly_pubkey_serialize
libsecp256k1.so.2:secp256k1_xonly_pubkey_tweak_add
libsecp256k1.so.2:secp256k1_xonly_pubkey_tweak_add_check
1 change: 0 additions & 1 deletion packages/s/secp256k1/abi_used_libs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
libc.so.6
libgmp.so.10
5 changes: 0 additions & 5 deletions packages/s/secp256k1/abi_used_symbols
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,5 @@ libc.so.6:__stack_chk_fail
libc.so.6:abort
libc.so.6:free
libc.so.6:malloc
libc.so.6:memcpy
libc.so.6:memset
libc.so.6:stderr
libgmp.so.10:__gmpn_gcdext
libgmp.so.10:__gmpn_get_str
libgmp.so.10:__gmpn_set_str
libgmp.so.10:__gmpn_sub_n
7 changes: 4 additions & 3 deletions packages/s/secp256k1/package.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name : secp256k1
version : 2020.07.1097 # Use YEAR + MONTH + git rev-list --count HEAD
release : 1
version : 0.5.0
release : 2
source :
- git|https://github.com/bitcoin-core/secp256k1.git : 3f4a5a10e43bfc8dae5b978cb39aa2dfbaf4d713
- https://github.com/bitcoin-core/secp256k1/archive/refs/tags/v0.5.0.tar.gz : 07934fde88c677abbc4d42c36ef7ef8d3850cd0c065e4f976f66f4f97502c95a
homepage : https://github.com/bitcoin-core/secp256k1
license : MIT
optimize : speed
component : security.library
Expand Down
27 changes: 16 additions & 11 deletions packages/s/secp256k1/pspec_x86_64.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<PISI>
<Source>
<Name>secp256k1</Name>
<Homepage>https://github.com/bitcoin-core/secp256k1</Homepage>
<Packager>
<Name>Joshua Strobl</Name>
<Email>[email protected]</Email>
<Name>Jakob Gezelius</Name>
<Email>[email protected]</Email>
</Packager>
<License>MIT</License>
<PartOf>security.library</PartOf>
<Summary xml:lang="en">Optimized C library for ECDSA signatures and secret/public key operations on curve secp256k1.</Summary>
<Description xml:lang="en">Optimized C library for ECDSA signatures and secret/public key operations on curve secp256k1.
</Description>
<Archive type="binary" sha1sum="79eb0752a961b8e0d15c77d298c97498fbc89c5a">https://getsol.us/sources/README.Solus</Archive>
<Archive type="binary" sha1sum="79eb0752a961b8e0d15c77d298c97498fbc89c5a">https://sources.getsol.us/README.Solus</Archive>
</Source>
<Package>
<Name>secp256k1</Name>
Expand All @@ -19,8 +20,8 @@
</Description>
<PartOf>security.library</PartOf>
<Files>
<Path fileType="library">/usr/lib64/libsecp256k1.so.0</Path>
<Path fileType="library">/usr/lib64/libsecp256k1.so.0.0.0</Path>
<Path fileType="library">/usr/lib64/libsecp256k1.so.2</Path>
<Path fileType="library">/usr/lib64/libsecp256k1.so.2.2.0</Path>
</Files>
</Package>
<Package>
Expand All @@ -30,23 +31,27 @@
</Description>
<PartOf>programming.devel</PartOf>
<RuntimeDependencies>
<Dependency release="1">secp256k1</Dependency>
<Dependency release="2">secp256k1</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include/secp256k1.h</Path>
<Path fileType="header">/usr/include/secp256k1_ecdh.h</Path>
<Path fileType="header">/usr/include/secp256k1_ellswift.h</Path>
<Path fileType="header">/usr/include/secp256k1_extrakeys.h</Path>
<Path fileType="header">/usr/include/secp256k1_preallocated.h</Path>
<Path fileType="header">/usr/include/secp256k1_recovery.h</Path>
<Path fileType="header">/usr/include/secp256k1_schnorrsig.h</Path>
<Path fileType="library">/usr/lib64/libsecp256k1.so</Path>
<Path fileType="data">/usr/lib64/pkgconfig/libsecp256k1.pc</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2020-07-09</Date>
<Version>2020.07.1097</Version>
<Update release="2">
<Date>2024-06-06</Date>
<Version>0.5.0</Version>
<Comment>Packaging update</Comment>
<Name>Joshua Strobl</Name>
<Email>[email protected]</Email>
<Name>Jakob Gezelius</Name>
<Email>[email protected]</Email>
</Update>
</History>
</PISI>

0 comments on commit d109967

Please sign in to comment.