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

Copyright(c) Rune K. Svendsen, 2016
LicensePublicDomain
Maintainerrunesvend@gmail.com
Safe HaskellNone
LanguageHaskell2010

Data.Bitcoin.PaymentChannel.Util

Description

Utility functions for Data.Bitcoin.PaymentChannel.

Synopsis

Documentation

getFundingAddress :: ChannelParameters -> Address Source

Derive a Bitcoin address, for funding a payment channel, from ChannelParameters. The transaction which pays to this address is the channel funding transaction, and information about this transaction is contained in FundingTxInfo.

data BitcoinLockTime Source

Data type representing a Bitcoin LockTime, which specifies a point in time. Derive a BitcoinLockTime from a UTCTime using fromDate.

parseBitcoinLocktime :: Word32 -> BitcoinLockTime Source

Convert from Bitcoin format (Word32)

toWord32 :: BitcoinLockTime -> Word32 Source

Convert to Bitcoin format (Word32)