bip32

Pure Haskell BIP32 hierarchical deterministic wallets (docs.ppad.tech/bip32).
git clone git://git.ppad.tech/bip32.git
Log | Files | Refs | README | LICENSE

commit 261936b6d80c52208dfd91fb9f506bf6a82aa9b4
parent 36b578815cf0fcd4e798d4be84a7ca44217575b2
Author: Jared Tobin <jared@jtobin.io>
Date:   Sat, 31 Oct 2026 11:44:16 +0400

release: v0.3.6

Diffstat:
MCHANGELOG | 7+++++++
Mflake.lock | 16++++++++--------
Mppad-bip32.cabal | 12+++++++++---
3 files changed, 24 insertions(+), 11 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,5 +1,12 @@ # Changelog +- 0.3.6 (2026-10-31) + * Bumps the ppad-fixed and ppad-secp256k1 dependencies, to 0.2.1 + and 0.5.9, which under the llvm flag on x86_64 are compiled 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.3.5 (2026-08-01) * Merely bumps the ppad-fixed and ppad-secp256k1 dependencies. diff --git a/flake.lock b/flake.lock @@ -119,11 +119,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" }, @@ -259,11 +259,11 @@ ] }, "locked": { - "lastModified": 1785605654, - "narHash": "sha256-VDNnKXmJIZZ/3u7Tf1rK93GR4x7OiAadqykhqCwkHb4=", + "lastModified": 1793432316, + "narHash": "sha256-H7wbWOXhYfL0qrhq2Ae8n+O9JVr8cHWgeYblGgNP7r4=", "ref": "master", - "rev": "fdb80d54b86c61bd1a15e2e8db351091d02c89ee", - "revCount": 280, + "rev": "b3494fafaebc51b991638721a2a5870138e1dc79", + "revCount": 282, "type": "git", "url": "git://git.ppad.tech/secp256k1.git" }, diff --git a/ppad-bip32.cabal b/ppad-bip32.cabal @@ -1,6 +1,6 @@ cabal-version: 3.0 name: ppad-bip32 -version: 0.3.5 +version: 0.3.6 synopsis: BIP32 hierarchical deterministic wallets. license: MIT license-file: LICENSE @@ -31,15 +31,21 @@ 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.HDKey.BIP32 build-depends: base >= 4.9 && < 5 , bytestring >= 0.9 && < 0.13 , ppad-base58 >= 0.2.3 && < 0.3 - , ppad-fixed >= 0.2 && < 0.3 + , ppad-fixed >= 0.2.1 && < 0.3 , ppad-ripemd160 >= 0.1.4 && < 0.2 - , ppad-secp256k1 >= 0.5.8 && < 0.6 + , ppad-secp256k1 >= 0.5.9 && < 0.6 , ppad-sha256 >= 0.3.2 && < 0.4 , ppad-sha512 >= 0.2.2 && < 0.3