secp256k1

Pure Haskell Schnorr, ECDSA on the elliptic curve secp256k1 (docs.ppad.tech/secp256k1).
git clone git://git.ppad.tech/secp256k1.git
Log | Files | Refs | README | LICENSE

commit 6ec173e105b5fae871fb8a8557cc4b4330f32542
parent 02a94bd244dfff3daa1450ad7d5f7c862db8e55c
Author: Jared Tobin <jared@jtobin.io>
Date:   Sun, 28 Dec 2025 11:58:56 -0330

lib: dep bumps

Diffstat:
MCHANGELOG | 5+++++
Mflake.lock | 60++++++++++++++++++++++++++++++------------------------------
Mflake.nix | 4++--
Mppad-secp256k1.cabal | 10+++++-----
4 files changed, 42 insertions(+), 37 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,5 +1,10 @@ # Changelog +- 0.5.2 (2025-12-28) + * Adds an explicit 64-bit architecture constraint, as implicitly this was + assumed. + * Tests on GHC.10.3. + - 0.5.1 (2025-12-27) * Improves the constant-time semantics in wNAF scalar multiplication, replacing "indexing via a constant-time selected value" by performing diff --git a/flake.lock b/flake.lock @@ -5,11 +5,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1710146030, - "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "owner": "numtide", "repo": "flake-utils", - "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1725910328, - "narHash": "sha256-n9pCtzGZ0httmTwMuEbi5E78UQ4ZbQMr1pzi5N0LAG8=", + "lastModified": 1766840161, + "narHash": "sha256-Ss/LHpJJsng8vz1Pe33RSGIWUOcqM1fjrehjUkdrWio=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "5775c2583f1801df7b790bf7f7d710a19bac66f4", + "rev": "3edc4a30ed3903fdf6f90c837f961fa6b49582d1", "type": "github" }, "original": { @@ -51,11 +51,11 @@ ] }, "locked": { - "lastModified": 1741625558, - "narHash": "sha256-ZBDXRD5fsVqA5bGrAlcnhiu67Eo50q0M9614nR3NBwY=", + "lastModified": 1766934151, + "narHash": "sha256-BUFpuLfrGXE2xi3Wa9TYCEhhRhFp175Ghxnr0JRbG2I=", "ref": "master", - "rev": "fb63457f2e894eda28250dfe65d0fcd1d195ac2f", - "revCount": 24, + "rev": "58dfb7922401a60d5de76825fcd5f6ecbcd7afe0", + "revCount": 26, "type": "git", "url": "git://git.ppad.tech/base16.git" }, @@ -82,11 +82,11 @@ ] }, "locked": { - "lastModified": 1766923905, - "narHash": "sha256-j1rzjclupG6ZjfRrtVsgrspInsiVJFZy194D6l0kNrY=", + "lastModified": 1766933347, + "narHash": "sha256-hwBsY4vyefW9qSj0MK0+wr9hIc0OcFuhQD11XGGcO/o=", "ref": "master", - "rev": "3373284d9b0fe3bc1c02164fb828475df0392798", - "revCount": 284, + "rev": "d7b03362f9d075c505b8c293524f577f7186a647", + "revCount": 289, "type": "git", "url": "git://git.ppad.tech/fixed.git" }, @@ -122,11 +122,11 @@ ] }, "locked": { - "lastModified": 1766436802, - "narHash": "sha256-cZBaR5zBpguiusf3/BzjwrMY63FoXDVGuas+e8QyjTc=", + "lastModified": 1766935294, + "narHash": "sha256-hwHadXNxB+mo50EsN9iEbwkzoqiqdobB8QwIjXpqckk=", "ref": "master", - "rev": "c23408f69f64d41c3d5478801bb16c0603b4e43b", - "revCount": 53, + "rev": "7557757c32cccb0d95416a21ac832df53cdfdb5d", + "revCount": 54, "type": "git", "url": "git://git.ppad.tech/hmac-drbg.git" }, @@ -142,11 +142,11 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1737297101, - "narHash": "sha256-EnXnq+JLflbWt+DvaGGnY2gfAqsGNOm5vPgHh3hkfwQ=", + "lastModified": 1766932084, + "narHash": "sha256-GvVsbTfW+B7IQ9K/QP2xcXJAm1lhBin1jYZWNjOzT+o=", "ref": "master", - "rev": "f29823875250bc99b3891f7373535ccde9a29a44", - "revCount": 1, + "rev": "353e61763b959b960a55321a85423501e3e9ed7a", + "revCount": 2, "type": "git", "url": "git://git.ppad.tech/nixpkgs.git" }, @@ -176,11 +176,11 @@ ] }, "locked": { - "lastModified": 1766484297, - "narHash": "sha256-jBXyJeilmp75csTkqsqgNtCUrkdk+wt5TEoWrFaatsM=", + "lastModified": 1766934663, + "narHash": "sha256-QFHvRxg/AN9/FHF9EyVui1os0sTxpawzsmxcHqcdhoc=", "ref": "master", - "rev": "5524b108ff5ebdfb113d77a313fa881f873480c1", - "revCount": 97, + "rev": "0d9a7a2f83fc95bf3ac1d335d1c0237d397e44bc", + "revCount": 98, "type": "git", "url": "git://git.ppad.tech/sha256.git" }, @@ -210,11 +210,11 @@ ] }, "locked": { - "lastModified": 1766437426, - "narHash": "sha256-vn0nUVrMqux2PorMOZlx3RAqylf88BTw+jRMXC0gIz8=", + "lastModified": 1766934908, + "narHash": "sha256-39ElMaWIjMW0BbHqINaHDjzpL8PsWNyvZn14QAKgPOo=", "ref": "master", - "rev": "669c4ffd1cc7826876af2d67661738c2081ea6a9", - "revCount": 31, + "rev": "4bb34de9a798e1954e09ec3b6d8d8b8db645e5d7", + "revCount": 32, "type": "git", "url": "git://git.ppad.tech/sha512.git" }, diff --git a/flake.nix b/flake.nix @@ -59,7 +59,7 @@ pkgs = import nixpkgs { inherit system; }; hlib = pkgs.haskell.lib; - llvm = pkgs.llvmPackages_15.llvm; + llvm = pkgs.llvmPackages_19.llvm; base16 = ppad-base16.packages.${system}.default; @@ -81,7 +81,7 @@ (hlib.enableCabalFlag hmac-drbg "llvm") [ llvm ]; - hpkgs = pkgs.haskell.packages.ghc981.extend (new: old: { + hpkgs = pkgs.haskell.packages.ghc910.extend (new: old: { ppad-base16 = base16; ppad-sha256 = sha256-llvm; ppad-hmac-drbg = hmac-drbg-llvm; diff --git a/ppad-secp256k1.cabal b/ppad-secp256k1.cabal @@ -1,6 +1,6 @@ cabal-version: 3.0 name: ppad-secp256k1 -version: 0.5.1 +version: 0.5.2 synopsis: Schnorr signatures, ECDSA, and ECDH on the elliptic curve secp256k1 license: MIT @@ -9,7 +9,7 @@ author: Jared Tobin maintainer: jared@ppad.tech category: Cryptography build-type: Simple -tested-with: GHC == { 9.8.1, 9.6.4 } +tested-with: GHC == { 9.10.3 } extra-doc-files: CHANGELOG description: Pure BIP0340-style Schnorr signatures, deterministic RFC6979 ECDSA, and @@ -38,9 +38,9 @@ library build-depends: base >= 4.9 && < 5 , bytestring >= 0.9 && < 0.13 - , ppad-hmac-drbg >= 0.1 && < 0.2 - , ppad-sha256 >= 0.2 && < 0.3 - , ppad-fixed >= 0.1.2 && < 0.2 + , ppad-hmac-drbg >= 0.1.3 && < 0.2 + , ppad-sha256 >= 0.2.4 && < 0.3 + , ppad-fixed >= 0.1.3 && < 0.2 , primitive >= 0.8 && < 0.10 test-suite secp256k1-tests