module PaymentChannel.Util
(
getFundingAddress,Scr.getRedeemScript,
serialize, deserEither,
BtcLockTime, parseLockTime, toWord32, fromDate,
Ser.parseJSONWord,
)
where
import Bitcoin.Util
import qualified PaymentChannel.Internal.ChanScript as Scr
import PaymentChannel.Internal.Receiver.Types
import qualified PaymentChannel.Internal.Serialization.JSON as Ser
import PaymentChannel.Types
import qualified Network.Haskoin.Crypto as HC
getFundingAddress :: ChanParams -> HC.Address
getFundingAddress = Scr.getP2SHFundingAddress