ppad-bip39 0.3.1 → 0.3.2
raw patch · 3 files changed
+14/−6 lines, 3 filesdep ~ppad-pbkdfdep ~ppad-sha256dep ~ppad-sha512PVP ok
version bump matches the API change (PVP)
Dependency ranges changed: ppad-pbkdf, ppad-sha256, ppad-sha512
API changes (from Hackage documentation)
Files
- CHANGELOG +3/−0
- lib/Crypto/KDF/BIP39.hs +7/−2
- ppad-bip39.cabal +4/−4
CHANGELOG view
@@ -1,5 +1,8 @@ # Changelog +- 0.3.2 (2026-01-10)+ * Bumps some dependency lower bounds.+ - 0.3.1 (2025-12-28) * Bumps some dependency lower bounds. * Adds an 'llvm' build flag and tests with GHC 9.10.3.
lib/Crypto/KDF/BIP39.hs view
@@ -63,6 +63,11 @@ fi = fromIntegral {-# INLINE fi #-} +hmac_sha512 :: BS.ByteString -> BS.ByteString -> BS.ByteString+hmac_sha512 k b = case SHA512.hmac k b of+ SHA512.MAC mac -> mac+{-# INLINE hmac_sha512 #-}+ -- | A BIP39 wordlist. newtype Wordlist = Wordlist (PA.Array T.Text) @@ -166,7 +171,7 @@ guard (_valid wlist mnem) let salt = TE.encodeUtf8 ("mnemonic" <> ICU.nfkd pass) norm = TE.encodeUtf8 (ICU.nfkd mnem)- PBKDF.derive SHA512.hmac norm salt 2048 64+ PBKDF.derive hmac_sha512 norm salt 2048 64 {-# INLINE _seed #-} -- | Derive a master seed from a provided mnemonic and passphrase.@@ -186,7 +191,7 @@ guard (length (T.words mnem) `elem` [12, 15, 18, 21, 24]) let salt = TE.encodeUtf8 ("mnemonic" <> ICU.nfkd pass) norm = TE.encodeUtf8 (ICU.nfkd mnem)- PBKDF.derive SHA512.hmac norm salt 2048 64+ PBKDF.derive hmac_sha512 norm salt 2048 64 -- | Validate a mnemonic against the default English wordlist. --
ppad-bip39.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: ppad-bip39-version: 0.3.1+version: 0.3.2 synopsis: BIP39 mnemonic codes. license: MIT license-file: LICENSE@@ -47,9 +47,9 @@ build-depends: base >= 4.9 && < 5 , bytestring >= 0.9 && < 0.13- , ppad-pbkdf >= 0.2.1 && < 0.3- , ppad-sha256 >= 0.2.4 && < 0.3- , ppad-sha512 >= 0.1.4 && < 0.2+ , ppad-pbkdf >= 0.2.2 && < 0.3+ , ppad-sha256 >= 0.3 && < 0.4+ , ppad-sha512 >= 0.2 && < 0.3 , primitive >= 0.8 && < 0.10 , text >= 2.1 && < 2.2 , text-icu >= 0.8 && < 0.9