Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 2026 09:18:54 +0000
From:      Alex Dupre <ale@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: d4acab95665c - main - math/secp256k1: update to 0.7.1 release.
Message-ID:  <6979d47e.36689.607524d7@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by ale:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d4acab95665caed195dc550c4ffa3217fff331f6

commit d4acab95665caed195dc550c4ffa3217fff331f6
Author:     Alex Dupre <ale@FreeBSD.org>
AuthorDate: 2026-01-28 09:17:46 +0000
Commit:     Alex Dupre <ale@FreeBSD.org>
CommitDate: 2026-01-28 09:18:51 +0000

    math/secp256k1: update to 0.7.1 release.
    
    math/py-secp256k1: update to 0.14.0 release.
---
 math/py-secp256k1/Makefile                           |  3 +--
 math/py-secp256k1/distinfo                           |  6 +++---
 .../files/patch-__cffi__build_secp256k1.h            | 20 ++++++++++++++++++++
 .../files/patch-secp256k1_____init____.py            | 19 +++++++++++++++++++
 math/py-secp256k1/files/patch-setup.py               |  6 +++---
 math/py-secp256k1/files/patch-setup__support.py      |  8 ++++++++
 math/secp256k1/Makefile                              |  2 +-
 math/secp256k1/distinfo                              |  6 +++---
 math/secp256k1/pkg-plist                             |  4 ++--
 9 files changed, 60 insertions(+), 14 deletions(-)

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,6 +1,5 @@
 PORTNAME=	secp256k1
-PORTVERSION=	0.13.2
-PORTREVISION=	4
+PORTVERSION=	0.14.0
 CATEGORIES=	math python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
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,7 +1,7 @@
---- 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'],
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,6 +1,6 @@
 PORTNAME=	secp256k1
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.6.0
+DISTVERSION=	0.7.1
 CATEGORIES=	math security java
 
 MAINTAINER=	ale@FreeBSD.org
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
@@ -8,6 +8,6 @@ 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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6979d47e.36689.607524d7>