bitcoin-payment-channel: Library for working with Bitcoin payment channels

[ bitcoin, finance, library, network ] [ Propose Tags ]
This version is deprecated.

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).


[Last Documentation]

  • Data
    • Bitcoin
      • Data.Bitcoin.PaymentChannel
        • Data.Bitcoin.PaymentChannel.Types
        • Data.Bitcoin.PaymentChannel.Util


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],,,,,,,,,,,,,,,,,,,, (info)
Dependencies aeson (>=0.11.0 && <0.12.0), base (>=4.7 && <5), base16-bytestring (>=0.1.0 && <0.2.0), base58string (>=0.10.0 && <0.11.0), base64-bytestring (>=1.0.0 && <1.1.0), binary (>=0.7.0 && <0.8.0), bitcoin-payment-channel, bytestring (>=0.10.0 && <0.11.0), cereal (>=0.5.0 && <0.6.0), errors (>=2.0.0 && <2.2.0), haskoin-core (>=0.3.1 && <0.4.0), hexstring (>=0.11.0 && <0.12.0), QuickCheck, scientific (>=0.3.0 && <0.4.0), text (>=1.2.0 && <1.3.0), time (>=1.5.0 && <1.6.0) [details]
License LicenseRef-PublicDomain
Author Rune K. Svendsen <>
Maintainer Rune K. Svendsen <>
Category Bitcoin, Finance, Network
Home page
Bug tracker
Source repo head: git clone git://
Uploaded by runeks at 2016-09-10T10:59:50Z
Reverse Dependencies 1 direct, 0 indirect [details]
Executables Test
Downloads 10743 total (4 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-11-20 [all 2 reports]