bip32

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

ppad-bip32.cabal (2242B)


      1 cabal-version:      3.0
      2 name:               ppad-bip32
      3 version:            0.3.6
      4 synopsis:           BIP32 hierarchical deterministic wallets.
      5 license:            MIT
      6 license-file:       LICENSE
      7 author:             Jared Tobin
      8 maintainer:         jared@ppad.tech
      9 category:           Cryptography
     10 build-type:         Simple
     11 tested-with:        GHC == 9.10.3
     12 extra-doc-files:    CHANGELOG
     13 description:
     14   [BIP32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki)
     15   hierarchical deterministic wallets and extended keys, with support for
     16   serialization and parsing.
     17 
     18 flag llvm
     19   description: Use GHC's LLVM backend.
     20   default:     False
     21   manual:      True
     22 
     23 source-repository head
     24   type:     git
     25   location: git.ppad.tech/bip32.git
     26 
     27 library
     28   default-language: Haskell2010
     29   hs-source-dirs:   lib
     30   ghc-options:
     31       -Wall
     32   if flag(llvm)
     33     ghc-options: -fllvm -O2
     34   -- LLVM's x86 backend rewrites a cmov whose operand is a load as a
     35   -- branch (its cmov converter), which would make the borrow-masked
     36   -- correction of ppad-fixed's sub_mod# (inlinable here) a branch on
     37   -- the borrow; keep the cmov.
     38   if flag(llvm) && arch(x86_64)
     39     ghc-options: -optlc=-x86-cmov-converter=false
     40   exposed-modules:
     41       Crypto.HDKey.BIP32
     42   build-depends:
     43       base >= 4.9 && < 5
     44     , bytestring >= 0.9 && < 0.13
     45     , ppad-base58 >= 0.2.3 && < 0.3
     46     , ppad-fixed >= 0.2.1 && < 0.3
     47     , ppad-ripemd160 >= 0.1.4 && < 0.2
     48     , ppad-secp256k1 >= 0.5.9 && < 0.6
     49     , ppad-sha256 >= 0.3.2 && < 0.4
     50     , ppad-sha512 >= 0.2.2 && < 0.3
     51 
     52 test-suite bip32-tests
     53   type:                exitcode-stdio-1.0
     54   default-language:    Haskell2010
     55   hs-source-dirs:      test
     56   main-is:             Main.hs
     57 
     58   ghc-options:
     59     -rtsopts -Wall -O2
     60 
     61   build-depends:
     62       base
     63     , array
     64     , bytestring
     65     , ppad-base16
     66     , ppad-base58
     67     , ppad-bip32
     68     , ppad-fixed
     69     , tasty
     70     , tasty-hunit
     71 
     72 benchmark bip32-bench
     73   type:                exitcode-stdio-1.0
     74   default-language:    Haskell2010
     75   hs-source-dirs:      bench
     76   main-is:             Main.hs
     77 
     78   ghc-options:
     79     -rtsopts -O2 -Wall
     80 
     81   build-depends:
     82       base
     83     , array
     84     , bytestring
     85     , criterion
     86     , deepseq
     87     , ppad-bip32
     88     , ppad-fixed
     89     , ppad-secp256k1
     90