bolt4

Onion routing protocol, per BOLT #4 (docs.ppad.tech/bolt4).
git clone git://git.ppad.tech/bolt4.git
Log | Files | Refs | README | LICENSE

ppad-bolt4.cabal (2535B)


      1 cabal-version:      3.0
      2 name:               ppad-bolt4
      3 version:            0.1.1
      4 synopsis:           Onion routing per BOLT #4
      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   Onion routing for the Lightning Network, per BOLT #4
     15   (<https://github.com/lightning/bolts/blob/master/04-onion-routing.md>):
     16   onion construction and processing, returning errors, and route
     17   blinding.
     18 
     19 source-repository head
     20   type:     git
     21   location: git.ppad.tech/bolt4.git
     22 
     23 library
     24   default-language: Haskell2010
     25   hs-source-dirs:   lib
     26   ghc-options:
     27       -Wall
     28   exposed-modules:
     29       Lightning.Protocol.BOLT4
     30   other-modules:
     31       Lightning.Protocol.BOLT4.Blinding
     32       Lightning.Protocol.BOLT4.Codec
     33       Lightning.Protocol.BOLT4.Construct
     34       Lightning.Protocol.BOLT4.Error
     35       Lightning.Protocol.BOLT4.Prim
     36       Lightning.Protocol.BOLT4.Process
     37       Lightning.Protocol.BOLT4.Types
     38   build-depends:
     39       base >= 4.9 && < 5
     40     , bytestring >= 0.11.1 && < 0.13
     41     , deepseq >= 1.4 && < 1.6
     42     , ppad-aead >= 0.3.7 && < 0.4
     43     , ppad-bolt1 >= 0.1 && < 0.2
     44     , ppad-bolt9 >= 0.1 && < 0.2
     45     , ppad-chacha >= 0.3 && < 0.4
     46     , ppad-fixed >= 0.2.1 && < 0.3
     47     , ppad-secp256k1 >= 0.5.9 && < 0.6
     48     , ppad-sha256 >= 0.3.2 && < 0.4
     49 
     50 test-suite bolt4-tests
     51   type:             exitcode-stdio-1.0
     52   default-language: Haskell2010
     53   hs-source-dirs:   test
     54   main-is:          Main.hs
     55   other-modules:    Vectors
     56   ghc-options:
     57       -rtsopts -Wall
     58   build-depends:
     59       base
     60     , bytestring
     61     , ppad-base16
     62     , ppad-bolt1
     63     , ppad-bolt4
     64     , ppad-bolt9
     65     , ppad-chacha
     66     , ppad-secp256k1
     67     , ppad-sha256
     68     , tasty
     69     , tasty-hunit
     70     , tasty-quickcheck
     71 
     72 benchmark bolt4-bench
     73   type:             exitcode-stdio-1.0
     74   default-language: Haskell2010
     75   hs-source-dirs:   bench
     76   main-is:          Main.hs
     77   other-modules:    Fixtures
     78   ghc-options:
     79       -rtsopts -O2 -Wall
     80   build-depends:
     81       base
     82     , bytestring
     83     , criterion
     84     , deepseq
     85     , ppad-bolt1
     86     , ppad-bolt4
     87 
     88 benchmark bolt4-weigh
     89   type:             exitcode-stdio-1.0
     90   default-language: Haskell2010
     91   hs-source-dirs:   bench
     92   main-is:          Weight.hs
     93   other-modules:    Fixtures
     94   ghc-options:
     95       -rtsopts -O2 -Wall
     96   build-depends:
     97       base
     98     , bytestring
     99     , deepseq
    100     , ppad-bolt1
    101     , ppad-bolt4
    102     , weigh