packages feed

bitcoin-payment-channel-0.2.2.0: bitcoin-payment-channel.cabal

name:                 bitcoin-payment-channel
version:              0.2.2.0
synopsis:             Library for working with Bitcoin payment channels
description:
    A Bitcoin payment channel allows secure and instant transfer of bitcoins from one
     party to another. Payments are created and verified in less than a millisecond
     (plus network latency), and cannot be double spent, as the receiver of funds is defined
     during channel setup.
    When the channel is closed, the settlement transaction transfers the appropriate value to each
     party, thus paying the Bitcoin transaction fee only once, regardless of the number of payments
     made over the channel.
    The channel setup procedure is trustless, because the funding party - after the chosen
     expiration date - is able to reclaim the bitcoins used to fund the channel,
     in case the receiving party goes missing.
    This library implements a type of payment channel where channel setup
     is safe from transaction ID malleability, and value transfer is uni-directional (one party
     sends and the other party receives) (CHECKLOCKTIMEVERIFY-style).

author:         Rune K. Svendsen <runesvend@gmail.com>
maintainer:     Rune K. Svendsen <runesvend@gmail.com>
license:        PublicDomain
stability:      experimental
homepage:       https://github.com/runeksvendsen/bitcoin-payment-channel
bug-reports:    https://github.com/runeksvendsen/bitcoin-payment-channel/issues
category:       Bitcoin, Finance, Network
build-type:     Simple
cabal-version:  >=1.10

source-repository head
    type:     git
    location: git://github.com/runeksvendsen/bitcoin-payment-channel.git

library
  exposed-modules:      Data.Bitcoin.PaymentChannel,
                        Data.Bitcoin.PaymentChannel.Types,
                        Data.Bitcoin.PaymentChannel.Util

  other-modules:
                        Data.Bitcoin.PaymentChannel.Internal.Error
                        Data.Bitcoin.PaymentChannel.Internal.BitcoinAmount,
                        Data.Bitcoin.PaymentChannel.Internal.Payment,
                        Data.Bitcoin.PaymentChannel.Internal.Refund,
                        Data.Bitcoin.PaymentChannel.Internal.Script,
                        Data.Bitcoin.PaymentChannel.Internal.Settlement,
                        Data.Bitcoin.PaymentChannel.Internal.State,
                        Data.Bitcoin.PaymentChannel.Internal.Types,
                        Data.Bitcoin.PaymentChannel.Internal.Serialization,
                        Data.Bitcoin.PaymentChannel.Internal.Util,
                        Data.Bitcoin.PaymentChannel.Internal.Version


  ghc-options:          -W

  build-depends:        base >= 4.7 && < 5,
                        haskoin-core >= 0.3.1 && < 1.0.0,
                        bytestring, text, base16-bytestring, base58string, hexstring,
                        base64-bytestring,
                        time,
                        errors,
                        cereal, binary, aeson, scientific
  hs-source-dirs:       src

  default-language:     Haskell2010

executable Test
  main-is:              Main.hs

--  default-extensions:   FlexibleContexts

--  other-modules:

--  ghc-options:          -Wall

  build-depends:        base >= 4.7 && < 5,
                        haskoin-core >= 0.3.0 && < 1.0.0,
                        bytestring, base16-bytestring, base64-bytestring,
                        base58string, hexstring, text,
                        time,
                        cereal, binary, aeson,

                        QuickCheck,
                        bitcoin-payment-channel

  hs-source-dirs:       test

  default-language:     Haskell2010