commit b3494fafaebc51b991638721a2a5870138e1dc79
parent 17ad88cabf68fe2295a8748063a0f88443408db4
Author: Jared Tobin <jared@jtobin.io>
Date: Sat, 31 Oct 2026 11:38:36 +0400
release: v0.5.9
Diffstat:
3 files changed, 19 insertions(+), 6 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
@@ -1,5 +1,12 @@
# Changelog
+- 0.5.9 (2026-10-31)
+ * Bumps the ppad-fixed dependency to 0.2.1, which under the llvm
+ flag on x86_64 compiles ppad-fixed with LLVM's x86 cmov converter
+ off (-optlc=-x86-cmov-converter=false). This library is compiled
+ likewise, as ppad-fixed's constant-time arithmetic can be inlined
+ into it.
+
- 0.5.8 (2026-08-01)
* Addresses a number of minor issues found by an LLM scan:
diff --git a/flake.lock b/flake.lock
@@ -82,11 +82,11 @@
]
},
"locked": {
- "lastModified": 1785603497,
- "narHash": "sha256-rF8KdVJ+VwUT2bEfCLZMPc05rUclr0wN2uOTYvd3z7g=",
+ "lastModified": 1793121974,
+ "narHash": "sha256-kw5niq662nriUKNS71Opf+pe8E1NjfbcRX7Jpq/7fSQ=",
"ref": "master",
- "rev": "e303bda7578385f488c2f23baa2e1a6a2b0b2aaf",
- "revCount": 305,
+ "rev": "cc87b097fdf31b2cab66104e9e09dcfe21e82678",
+ "revCount": 308,
"type": "git",
"url": "git://git.ppad.tech/fixed.git"
},
diff --git a/ppad-secp256k1.cabal b/ppad-secp256k1.cabal
@@ -1,6 +1,6 @@
cabal-version: 3.0
name: ppad-secp256k1
-version: 0.5.8
+version: 0.5.9
synopsis: Schnorr signatures, ECDSA, and ECDH on the elliptic curve
secp256k1
license: MIT
@@ -31,6 +31,12 @@ library
-Wall
if flag(llvm)
ghc-options: -fllvm -O2
+ -- LLVM's x86 backend rewrites a cmov whose operand is a load as a
+ -- branch (its cmov converter), which would make the borrow-masked
+ -- correction of ppad-fixed's sub_mod# (inlinable here) a branch on
+ -- the borrow; keep the cmov.
+ if flag(llvm) && arch(x86_64)
+ ghc-options: -optlc=-x86-cmov-converter=false
exposed-modules:
Crypto.Curve.Secp256k1
build-depends:
@@ -38,7 +44,7 @@ library
, bytestring >= 0.9 && < 0.13
, ppad-hmac-drbg >= 0.3.1 && < 0.4
, ppad-sha256 >= 0.3.2 && < 0.4
- , ppad-fixed >= 0.2.0 && < 0.3
+ , ppad-fixed >= 0.2.1 && < 0.3
, primitive >= 0.8 && < 0.10
test-suite secp256k1-tests