bitcoin-payment-channel

Library for working with Bitcoin payment channels

https://github.com/runeksvendsen/bitcoin-payment-channel

Version on this page:0.3.0.1
LTS Haskell 7.24:0.3.0.1
Stackage Nightly 2016-09-14:0.3.0.1
Latest on Hackage:1.2.0.0

See all snapshots bitcoin-payment-channel appears in

LicenseRef-PublicDomain licensed and maintained by Rune K. Svendsen
This version can be pinned in stack with:bitcoin-payment-channel-0.3.0.1@sha256:4165a17c0e31e0a0b753c70d48d8a4207c2eddbcaf396453c2523d2ee0a257ab,4210

Module documentation for 0.3.0.1

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