bolt3

Lightning transaction and script formats, per BOLT #3 (docs.ppad.tech/bolt3).
git clone git://git.ppad.tech/bolt3.git
Log | Files | Refs | README | LICENSE

ppad-bolt3.cabal (2289B)


      1 cabal-version:      3.0
      2 name:               ppad-bolt3
      3 version:            0.0.1
      4 synopsis:           Bitcoin transaction formats per BOLT #3
      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   Bitcoin transaction formats for the Lightning Network, per
     15   [BOLT #3](https://github.com/lightning/bolts/blob/master/03-transactions.md).
     16 
     17 source-repository head
     18   type:     git
     19   location: git.ppad.tech/bolt3.git
     20 
     21 library
     22   default-language: Haskell2010
     23   hs-source-dirs:   lib
     24   ghc-options:
     25       -Wall
     26   exposed-modules:
     27       Lightning.Protocol.BOLT3
     28       Lightning.Protocol.BOLT3.Decode
     29       Lightning.Protocol.BOLT3.Encode
     30       Lightning.Protocol.BOLT3.Internal
     31       Lightning.Protocol.BOLT3.Keys
     32       Lightning.Protocol.BOLT3.Scripts
     33       Lightning.Protocol.BOLT3.Tx
     34       Lightning.Protocol.BOLT3.Types
     35       Lightning.Protocol.BOLT3.Validate
     36   build-depends:
     37       base >= 4.9 && < 5
     38     , bytestring >= 0.9 && < 0.13
     39     , ppad-bolt1 >= 0.0.1 && < 0.1
     40     , ppad-ripemd160 >= 0.1.4 && < 0.2
     41     , ppad-secp256k1 >= 0.5.4 && < 0.6
     42     , ppad-sha256 >= 0.3.2 && < 0.4
     43     , ppad-tx >= 0.1 && < 0.2
     44 
     45 test-suite bolt3-tests
     46   type:                exitcode-stdio-1.0
     47   default-language:    Haskell2010
     48   hs-source-dirs:      test
     49   main-is:             Main.hs
     50 
     51   ghc-options:
     52     -rtsopts -Wall -O2
     53 
     54   build-depends:
     55       base
     56     , base16-bytestring
     57     , bytestring
     58     , ppad-bolt3
     59     , QuickCheck
     60     , tasty
     61     , tasty-hunit
     62     , tasty-quickcheck
     63 
     64 benchmark bolt3-bench
     65   type:                exitcode-stdio-1.0
     66   default-language:    Haskell2010
     67   hs-source-dirs:      bench
     68   main-is:             Main.hs
     69 
     70   ghc-options:
     71     -rtsopts -O2 -Wall -fno-warn-orphans
     72 
     73   build-depends:
     74       base
     75     , bytestring
     76     , criterion
     77     , deepseq
     78     , ppad-bolt3
     79 
     80 benchmark bolt3-weigh
     81   type:                exitcode-stdio-1.0
     82   default-language:    Haskell2010
     83   hs-source-dirs:      bench
     84   main-is:             Weight.hs
     85 
     86   ghc-options:
     87     -rtsopts -O2 -Wall -fno-warn-orphans
     88 
     89   build-depends:
     90       base
     91     , bytestring
     92     , deepseq
     93     , ppad-bolt3
     94     , weigh
     95