diff --git a/math/py-secp256k1/Makefile b/math/py-secp256k1/Makefile index 4fd354f93917..6e12b78eea16 100644 --- a/math/py-secp256k1/Makefile +++ b/math/py-secp256k1/Makefile @@ -1,20 +1,19 @@ PORTNAME= secp256k1 -PORTVERSION= 0.13.2 -PORTREVISION= 4 +PORTVERSION= 0.14.0 CATEGORIES= math python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= python@FreeBSD.org COMMENT= FFI bindings to libsecp256k1 WWW= https://github.com/rustyrussell/secp256k1-py LICENSE= MIT BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.8.0:devel/py-cffi@${PY_FLAVOR} LIB_DEPENDS= libsecp256k1.so:math/secp256k1 USES= localbase python pkgconfig USE_PYTHON= autoplist distutils .include diff --git a/math/py-secp256k1/distinfo b/math/py-secp256k1/distinfo index d2988f1d9cd6..fad3feb46480 100644 --- a/math/py-secp256k1/distinfo +++ b/math/py-secp256k1/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1527391407 -SHA256 (secp256k1-0.13.2.tar.gz) = a3b43e02d321c09eafa769a6fc2c156f555cab3a7db62175ef2fd21e16cdf20c -SIZE (secp256k1-0.13.2.tar.gz) = 156726 +TIMESTAMP = 1769589674 +SHA256 (secp256k1-0.14.0.tar.gz) = 82c06712d69ef945220c8b53c1a0d424c2ff6a1f64aee609030df79ad8383397 +SIZE (secp256k1-0.14.0.tar.gz) = 2420607 diff --git a/math/py-secp256k1/files/patch-__cffi__build_secp256k1.h b/math/py-secp256k1/files/patch-__cffi__build_secp256k1.h new file mode 100644 index 000000000000..43dc8524f7a0 --- /dev/null +++ b/math/py-secp256k1/files/patch-__cffi__build_secp256k1.h @@ -0,0 +1,20 @@ +--- _cffi_build/secp256k1.h.orig 2026-01-28 09:10:51 UTC ++++ _cffi_build/secp256k1.h +@@ -133,7 +133,7 @@ int secp256k1_ec_pubkey_create( + const unsigned char *seckey + ); + +-int secp256k1_ec_privkey_tweak_add( ++int secp256k1_ec_seckey_tweak_add( + const secp256k1_context* ctx, + unsigned char *seckey, + const unsigned char *tweak +@@ -145,7 +145,7 @@ int secp256k1_ec_pubkey_tweak_add( + const unsigned char *tweak + ); + +-int secp256k1_ec_privkey_tweak_mul( ++int secp256k1_ec_seckey_tweak_mul( + const secp256k1_context* ctx, + unsigned char *seckey, + const unsigned char *tweak diff --git a/math/py-secp256k1/files/patch-secp256k1_____init____.py b/math/py-secp256k1/files/patch-secp256k1_____init____.py new file mode 100644 index 000000000000..82b60f846aad --- /dev/null +++ b/math/py-secp256k1/files/patch-secp256k1_____init____.py @@ -0,0 +1,19 @@ +--- secp256k1/__init__.py.orig 2026-01-28 09:09:44 UTC ++++ secp256k1/__init__.py +@@ -319,14 +319,14 @@ class PrivateKey(ECDSA): + Tweak the current private key by adding a 32 byte scalar + to it and return a new raw private key composed of 32 bytes. + """ +- return _tweak_private(self, lib.secp256k1_ec_privkey_tweak_add, scalar) ++ return _tweak_private(self, lib.secp256k1_ec_seckey_tweak_add, scalar) + + def tweak_mul(self, scalar): + """ + Tweak the current private key by multiplying it by a 32 byte scalar + and return a new raw private key composed of 32 bytes. + """ +- return _tweak_private(self, lib.secp256k1_ec_privkey_tweak_mul, scalar) ++ return _tweak_private(self, lib.secp256k1_ec_seckey_tweak_mul, scalar) + + def ecdsa_sign(self, msg, raw=False, digest=hashlib.sha256, + custom_nonce=None): diff --git a/math/py-secp256k1/files/patch-setup.py b/math/py-secp256k1/files/patch-setup.py index b826744e1490..a7c2a7bb0dd8 100644 --- a/math/py-secp256k1/files/patch-setup.py +++ b/math/py-secp256k1/files/patch-setup.py @@ -1,11 +1,11 @@ ---- setup.py.orig 2016-09-16 14:22:47 UTC +--- setup.py.orig 2021-11-06 01:31:13 UTC +++ setup.py -@@ -263,7 +263,7 @@ setup( - author_email='lud@tutanota.com', +@@ -276,7 +276,7 @@ setup( + maintainer_email='rusty@rustcorp.com.au', license='MIT', - setup_requires=['cffi>=1.3.0', 'pytest-runner==2.6.2'], + setup_requires=['cffi>=1.3.0'], install_requires=['cffi>=1.3.0'], tests_require=['pytest==2.8.7'], diff --git a/math/py-secp256k1/files/patch-setup__support.py b/math/py-secp256k1/files/patch-setup__support.py new file mode 100644 index 000000000000..8bf52bee3ff1 --- /dev/null +++ b/math/py-secp256k1/files/patch-setup__support.py @@ -0,0 +1,8 @@ +--- setup_support.py.orig 2026-01-28 09:03:52 UTC ++++ setup_support.py +@@ -105,4 +105,4 @@ def has_system_lib(): + global _has_system_lib + if _has_system_lib is None: + _has_system_lib = _find_lib() +- return False ++ return _has_system_lib diff --git a/math/secp256k1/Makefile b/math/secp256k1/Makefile index abdc97284a3b..b133f1d83d9e 100644 --- a/math/secp256k1/Makefile +++ b/math/secp256k1/Makefile @@ -1,24 +1,24 @@ PORTNAME= secp256k1 DISTVERSIONPREFIX= v -DISTVERSION= 0.6.0 +DISTVERSION= 0.7.1 CATEGORIES= math security java MAINTAINER= ale@FreeBSD.org COMMENT= Optimized C library for EC operations on curve secp256k1 WWW= https://github.com/bitcoin-core/secp256k1 LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYING USES= autoreconf libtool USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= bitcoin-core GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-module-recovery INSTALL_TARGET= install-strip TEST_TARGET= check .include diff --git a/math/secp256k1/distinfo b/math/secp256k1/distinfo index 378b71da49a9..a6c499edab5f 100644 --- a/math/secp256k1/distinfo +++ b/math/secp256k1/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1730814381 -SHA256 (bitcoin-core-secp256k1-v0.6.0_GH0.tar.gz) = 785bb98e7d6705c51c8dfa8ac3af6aa2ccfa3774714d51c0b9e28fac1146e9f1 -SIZE (bitcoin-core-secp256k1-v0.6.0_GH0.tar.gz) = 1996783 +TIMESTAMP = 1769588769 +SHA256 (bitcoin-core-secp256k1-v0.7.1_GH0.tar.gz) = 958f204dbafc117e73a2604285dc2eb2a5128344d3499c114dcba5de54cb7a9e +SIZE (bitcoin-core-secp256k1-v0.7.1_GH0.tar.gz) = 2154599 diff --git a/math/secp256k1/pkg-plist b/math/secp256k1/pkg-plist index f9489d99bc4e..7a7ac2834134 100644 --- a/math/secp256k1/pkg-plist +++ b/math/secp256k1/pkg-plist @@ -1,13 +1,13 @@ include/secp256k1.h include/secp256k1_ecdh.h include/secp256k1_ellswift.h include/secp256k1_extrakeys.h include/secp256k1_musig.h include/secp256k1_preallocated.h include/secp256k1_recovery.h include/secp256k1_schnorrsig.h lib/libsecp256k1.a lib/libsecp256k1.so -lib/libsecp256k1.so.5 -lib/libsecp256k1.so.5.0.0 +lib/libsecp256k1.so.6 +lib/libsecp256k1.so.6.0.1 libdata/pkgconfig/libsecp256k1.pc