ppad-bolt2-0.1.0: Peer protocol per BOLT #2
Copyright(c) 2025 Jared Tobin
LicenseMIT
MaintainerJared Tobin <jared@ppad.tech>
Safe HaskellNone
LanguageHaskell2010

Lightning.Protocol.BOLT2

Description

The peer protocol of the Lightning Network, per BOLT #2: the messages for channel establishment (v1 and v2), interactive transaction construction, quiescence, channel close, normal operation and message retransmission.

Fundamental types (channel ids, points, signatures, amounts, TLV streams) come from ppad-bolt1, transaction ids from ppad-tx, and feature vectors from ppad-bolt9.

Each message has a payload codec, encode_<msg> and decode_<msg>; encode_message and decode_message handle complete messages, including the type. Decoders consume the whole payload: bytes after the fixed fields are the message's TLV stream. Known TLV records are decoded into typed fields, an unknown even record fails the decode, and unknown odd records are kept in the message's _tlvs field, so re-encoding a decoded message reproduces its bytes.

The examples below assume:

>>> :set -XOverloadedStrings
>>> import qualified Data.ByteString as BS
>>> import qualified Lightning.Protocol.BOLT1 as BOLT1
>>> import Lightning.Protocol.BOLT2
>>> let Just cid = BOLT1.channel_id (BS.replicate 32 0xab)

Encode a message, and decode it again:

>>> let fee = UpdateFee cid 2500 BOLT1.empty_tlv_stream
>>> let Right wire = encode_message (MsgUpdateFee fee)
>>> BS.length wire
38
>>> decode_message wire == Right (MsgUpdateFee fee)
True

Unknown odd TLV records are preserved, and unknown even ones rejected:

>>> let payload = encode_update_fee fee
>>> fmap update_fee_tlvs (decode_update_fee (payload <> "\x05\x01\x2a"))
Right (TlvStream [TlvRecord {tlv_type = 5, tlv_value = "*"}])
>>> decode_update_fee (payload <> "\x04\x01\x2a")
Left (DecodeTlvError (TlvUnknownEvenType 4))
Synopsis

Messages

data Message Source #

A BOLT #2 message.

Instances

Instances details
NFData Message Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: Message -> () #

Generic Message Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep Message 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep Message = D1 ('MetaData "Message" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) ((((C1 ('MetaCons "MsgOpenChannel" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 OpenChannel)) :+: (C1 ('MetaCons "MsgAcceptChannel" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AcceptChannel)) :+: C1 ('MetaCons "MsgFundingCreated" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FundingCreated)))) :+: ((C1 ('MetaCons "MsgFundingSigned" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FundingSigned)) :+: C1 ('MetaCons "MsgChannelReady" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelReady))) :+: (C1 ('MetaCons "MsgOpenChannel2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 OpenChannel2)) :+: C1 ('MetaCons "MsgAcceptChannel2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AcceptChannel2))))) :+: ((C1 ('MetaCons "MsgTxAddInput" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxAddInput)) :+: (C1 ('MetaCons "MsgTxAddOutput" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxAddOutput)) :+: C1 ('MetaCons "MsgTxRemoveInput" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxRemoveInput)))) :+: ((C1 ('MetaCons "MsgTxRemoveOutput" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxRemoveOutput)) :+: C1 ('MetaCons "MsgTxComplete" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxComplete))) :+: (C1 ('MetaCons "MsgTxSignatures" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxSignatures)) :+: C1 ('MetaCons "MsgTxInitRbf" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxInitRbf)))))) :+: (((C1 ('MetaCons "MsgTxAckRbf" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxAckRbf)) :+: (C1 ('MetaCons "MsgTxAbort" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxAbort)) :+: C1 ('MetaCons "MsgStfu" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Stfu)))) :+: ((C1 ('MetaCons "MsgShutdown" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Shutdown)) :+: C1 ('MetaCons "MsgClosingComplete" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ClosingComplete))) :+: (C1 ('MetaCons "MsgClosingSig" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ClosingSig)) :+: C1 ('MetaCons "MsgClosingSigned" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ClosingSigned))))) :+: (((C1 ('MetaCons "MsgUpdateAddHtlc" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UpdateAddHtlc)) :+: C1 ('MetaCons "MsgUpdateFulfillHtlc" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UpdateFulfillHtlc))) :+: (C1 ('MetaCons "MsgUpdateFailHtlc" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UpdateFailHtlc)) :+: C1 ('MetaCons "MsgUpdateFailMalformedHtlc" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UpdateFailMalformedHtlc)))) :+: ((C1 ('MetaCons "MsgCommitmentSigned" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CommitmentSigned)) :+: C1 ('MetaCons "MsgRevokeAndAck" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 RevokeAndAck))) :+: (C1 ('MetaCons "MsgUpdateFee" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UpdateFee)) :+: C1 ('MetaCons "MsgChannelReestablish" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelReestablish)))))))

Methods

from :: Message -> Rep Message x #

to :: Rep Message x -> Message #

Show Message Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq Message Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

(==) :: Message -> Message -> Bool #

(/=) :: Message -> Message -> Bool #

type Rep Message Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep Message = D1 ('MetaData "Message" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) ((((C1 ('MetaCons "MsgOpenChannel" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 OpenChannel)) :+: (C1 ('MetaCons "MsgAcceptChannel" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AcceptChannel)) :+: C1 ('MetaCons "MsgFundingCreated" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FundingCreated)))) :+: ((C1 ('MetaCons "MsgFundingSigned" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FundingSigned)) :+: C1 ('MetaCons "MsgChannelReady" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelReady))) :+: (C1 ('MetaCons "MsgOpenChannel2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 OpenChannel2)) :+: C1 ('MetaCons "MsgAcceptChannel2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AcceptChannel2))))) :+: ((C1 ('MetaCons "MsgTxAddInput" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxAddInput)) :+: (C1 ('MetaCons "MsgTxAddOutput" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxAddOutput)) :+: C1 ('MetaCons "MsgTxRemoveInput" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxRemoveInput)))) :+: ((C1 ('MetaCons "MsgTxRemoveOutput" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxRemoveOutput)) :+: C1 ('MetaCons "MsgTxComplete" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxComplete))) :+: (C1 ('MetaCons "MsgTxSignatures" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxSignatures)) :+: C1 ('MetaCons "MsgTxInitRbf" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxInitRbf)))))) :+: (((C1 ('MetaCons "MsgTxAckRbf" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxAckRbf)) :+: (C1 ('MetaCons "MsgTxAbort" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxAbort)) :+: C1 ('MetaCons "MsgStfu" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Stfu)))) :+: ((C1 ('MetaCons "MsgShutdown" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Shutdown)) :+: C1 ('MetaCons "MsgClosingComplete" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ClosingComplete))) :+: (C1 ('MetaCons "MsgClosingSig" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ClosingSig)) :+: C1 ('MetaCons "MsgClosingSigned" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ClosingSigned))))) :+: (((C1 ('MetaCons "MsgUpdateAddHtlc" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UpdateAddHtlc)) :+: C1 ('MetaCons "MsgUpdateFulfillHtlc" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UpdateFulfillHtlc))) :+: (C1 ('MetaCons "MsgUpdateFailHtlc" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UpdateFailHtlc)) :+: C1 ('MetaCons "MsgUpdateFailMalformedHtlc" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UpdateFailMalformedHtlc)))) :+: ((C1 ('MetaCons "MsgCommitmentSigned" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CommitmentSigned)) :+: C1 ('MetaCons "MsgRevokeAndAck" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 RevokeAndAck))) :+: (C1 ('MetaCons "MsgUpdateFee" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UpdateFee)) :+: C1 ('MetaCons "MsgChannelReestablish" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelReestablish)))))))

message_type :: Message -> Word16 Source #

The wire type of a Message.

>>> message_type (MsgTxComplete (TxComplete cid BOLT1.empty_tlv_stream))
70

Channel establishment v1

data OpenChannel Source #

The open_channel message (type 32).

Instances

Instances details
NFData OpenChannel Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: OpenChannel -> () #

Generic OpenChannel Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep OpenChannel 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep OpenChannel = D1 ('MetaData "OpenChannel" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "OpenChannel" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "open_channel_chain_hash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainHash) :*: S1 ('MetaSel ('Just "open_channel_temporary_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId)) :*: (S1 ('MetaSel ('Just "open_channel_funding_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi) :*: (S1 ('MetaSel ('Just "open_channel_push_msat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshi) :*: S1 ('MetaSel ('Just "open_channel_dust_limit_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi)))) :*: ((S1 ('MetaSel ('Just "open_channel_max_htlc_value_in_flight_msat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "open_channel_channel_reserve_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi)) :*: (S1 ('MetaSel ('Just "open_channel_htlc_minimum_msat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshi) :*: (S1 ('MetaSel ('Just "open_channel_feerate_per_kw") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "open_channel_to_self_delay") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16))))) :*: (((S1 ('MetaSel ('Just "open_channel_max_accepted_htlcs") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: S1 ('MetaSel ('Just "open_channel_funding_pubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)) :*: (S1 ('MetaSel ('Just "open_channel_revocation_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: (S1 ('MetaSel ('Just "open_channel_payment_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "open_channel_delayed_payment_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)))) :*: ((S1 ('MetaSel ('Just "open_channel_htlc_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: (S1 ('MetaSel ('Just "open_channel_first_per_commitment_point") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "open_channel_channel_flags") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word8))) :*: (S1 ('MetaSel ('Just "open_channel_upfront_shutdown_script") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe ScriptPubKey)) :*: (S1 ('MetaSel ('Just "open_channel_channel_type") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe FeatureVector)) :*: S1 ('MetaSel ('Just "open_channel_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))))
Show OpenChannel Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq OpenChannel Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep OpenChannel Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep OpenChannel = D1 ('MetaData "OpenChannel" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "OpenChannel" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "open_channel_chain_hash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainHash) :*: S1 ('MetaSel ('Just "open_channel_temporary_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId)) :*: (S1 ('MetaSel ('Just "open_channel_funding_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi) :*: (S1 ('MetaSel ('Just "open_channel_push_msat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshi) :*: S1 ('MetaSel ('Just "open_channel_dust_limit_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi)))) :*: ((S1 ('MetaSel ('Just "open_channel_max_htlc_value_in_flight_msat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "open_channel_channel_reserve_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi)) :*: (S1 ('MetaSel ('Just "open_channel_htlc_minimum_msat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshi) :*: (S1 ('MetaSel ('Just "open_channel_feerate_per_kw") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "open_channel_to_self_delay") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16))))) :*: (((S1 ('MetaSel ('Just "open_channel_max_accepted_htlcs") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: S1 ('MetaSel ('Just "open_channel_funding_pubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)) :*: (S1 ('MetaSel ('Just "open_channel_revocation_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: (S1 ('MetaSel ('Just "open_channel_payment_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "open_channel_delayed_payment_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)))) :*: ((S1 ('MetaSel ('Just "open_channel_htlc_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: (S1 ('MetaSel ('Just "open_channel_first_per_commitment_point") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "open_channel_channel_flags") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word8))) :*: (S1 ('MetaSel ('Just "open_channel_upfront_shutdown_script") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe ScriptPubKey)) :*: (S1 ('MetaSel ('Just "open_channel_channel_type") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe FeatureVector)) :*: S1 ('MetaSel ('Just "open_channel_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))))

data AcceptChannel Source #

The accept_channel message (type 33).

Instances

Instances details
NFData AcceptChannel Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: AcceptChannel -> () #

Generic AcceptChannel Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep AcceptChannel 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep AcceptChannel = D1 ('MetaData "AcceptChannel" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "AcceptChannel" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "accept_channel_temporary_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "accept_channel_dust_limit_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi)) :*: (S1 ('MetaSel ('Just "accept_channel_max_htlc_value_in_flight_msat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "accept_channel_channel_reserve_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi))) :*: ((S1 ('MetaSel ('Just "accept_channel_htlc_minimum_msat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshi) :*: S1 ('MetaSel ('Just "accept_channel_minimum_depth") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "accept_channel_to_self_delay") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: S1 ('MetaSel ('Just "accept_channel_max_accepted_htlcs") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16)))) :*: (((S1 ('MetaSel ('Just "accept_channel_funding_pubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "accept_channel_revocation_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)) :*: (S1 ('MetaSel ('Just "accept_channel_payment_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "accept_channel_delayed_payment_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point))) :*: ((S1 ('MetaSel ('Just "accept_channel_htlc_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "accept_channel_first_per_commitment_point") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)) :*: (S1 ('MetaSel ('Just "accept_channel_upfront_shutdown_script") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe ScriptPubKey)) :*: (S1 ('MetaSel ('Just "accept_channel_channel_type") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe FeatureVector)) :*: S1 ('MetaSel ('Just "accept_channel_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))))
Show AcceptChannel Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq AcceptChannel Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep AcceptChannel Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep AcceptChannel = D1 ('MetaData "AcceptChannel" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "AcceptChannel" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "accept_channel_temporary_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "accept_channel_dust_limit_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi)) :*: (S1 ('MetaSel ('Just "accept_channel_max_htlc_value_in_flight_msat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "accept_channel_channel_reserve_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi))) :*: ((S1 ('MetaSel ('Just "accept_channel_htlc_minimum_msat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshi) :*: S1 ('MetaSel ('Just "accept_channel_minimum_depth") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "accept_channel_to_self_delay") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: S1 ('MetaSel ('Just "accept_channel_max_accepted_htlcs") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16)))) :*: (((S1 ('MetaSel ('Just "accept_channel_funding_pubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "accept_channel_revocation_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)) :*: (S1 ('MetaSel ('Just "accept_channel_payment_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "accept_channel_delayed_payment_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point))) :*: ((S1 ('MetaSel ('Just "accept_channel_htlc_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "accept_channel_first_per_commitment_point") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)) :*: (S1 ('MetaSel ('Just "accept_channel_upfront_shutdown_script") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe ScriptPubKey)) :*: (S1 ('MetaSel ('Just "accept_channel_channel_type") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe FeatureVector)) :*: S1 ('MetaSel ('Just "accept_channel_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))))

data FundingCreated Source #

The funding_created message (type 34).

Instances

Instances details
NFData FundingCreated Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: FundingCreated -> () #

Generic FundingCreated Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep FundingCreated 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep FundingCreated = D1 ('MetaData "FundingCreated" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "FundingCreated" 'PrefixI 'True) ((S1 ('MetaSel ('Just "funding_created_temporary_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "funding_created_funding_txid") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxId)) :*: (S1 ('MetaSel ('Just "funding_created_funding_output_index") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: (S1 ('MetaSel ('Just "funding_created_signature") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Signature) :*: S1 ('MetaSel ('Just "funding_created_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))
Show FundingCreated Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq FundingCreated Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep FundingCreated Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep FundingCreated = D1 ('MetaData "FundingCreated" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "FundingCreated" 'PrefixI 'True) ((S1 ('MetaSel ('Just "funding_created_temporary_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "funding_created_funding_txid") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxId)) :*: (S1 ('MetaSel ('Just "funding_created_funding_output_index") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: (S1 ('MetaSel ('Just "funding_created_signature") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Signature) :*: S1 ('MetaSel ('Just "funding_created_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))

data FundingSigned Source #

The funding_signed message (type 35).

Instances

Instances details
NFData FundingSigned Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: FundingSigned -> () #

Generic FundingSigned Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep FundingSigned 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep FundingSigned = D1 ('MetaData "FundingSigned" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "FundingSigned" 'PrefixI 'True) (S1 ('MetaSel ('Just "funding_signed_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "funding_signed_signature") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Signature) :*: S1 ('MetaSel ('Just "funding_signed_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))
Show FundingSigned Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq FundingSigned Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep FundingSigned Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep FundingSigned = D1 ('MetaData "FundingSigned" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "FundingSigned" 'PrefixI 'True) (S1 ('MetaSel ('Just "funding_signed_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "funding_signed_signature") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Signature) :*: S1 ('MetaSel ('Just "funding_signed_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))

data ChannelReady Source #

The channel_ready message (type 36).

Constructors

ChannelReady 

Instances

Instances details
NFData ChannelReady Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: ChannelReady -> () #

Generic ChannelReady Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep ChannelReady 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep ChannelReady = D1 ('MetaData "ChannelReady" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "ChannelReady" 'PrefixI 'True) ((S1 ('MetaSel ('Just "channel_ready_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "channel_ready_second_per_commitment_point") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)) :*: (S1 ('MetaSel ('Just "channel_ready_alias") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe ShortChannelId)) :*: S1 ('MetaSel ('Just "channel_ready_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))
Show ChannelReady Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq ChannelReady Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep ChannelReady Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep ChannelReady = D1 ('MetaData "ChannelReady" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "ChannelReady" 'PrefixI 'True) ((S1 ('MetaSel ('Just "channel_ready_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "channel_ready_second_per_commitment_point") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)) :*: (S1 ('MetaSel ('Just "channel_ready_alias") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe ShortChannelId)) :*: S1 ('MetaSel ('Just "channel_ready_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))

Channel establishment v2

data OpenChannel2 Source #

The open_channel2 message (type 64).

Instances

Instances details
NFData OpenChannel2 Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: OpenChannel2 -> () #

Generic OpenChannel2 Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep OpenChannel2 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep OpenChannel2 = D1 ('MetaData "OpenChannel2" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "OpenChannel2" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "open_channel2_chain_hash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainHash) :*: S1 ('MetaSel ('Just "open_channel2_temporary_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId)) :*: (S1 ('MetaSel ('Just "open_channel2_funding_feerate_perkw") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "open_channel2_commitment_feerate_perkw") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "open_channel2_funding_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi)))) :*: ((S1 ('MetaSel ('Just "open_channel2_dust_limit_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi) :*: (S1 ('MetaSel ('Just "open_channel2_max_htlc_value_in_flight_msat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "open_channel2_htlc_minimum_msat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshi))) :*: (S1 ('MetaSel ('Just "open_channel2_to_self_delay") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: (S1 ('MetaSel ('Just "open_channel2_max_accepted_htlcs") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: S1 ('MetaSel ('Just "open_channel2_locktime") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32))))) :*: (((S1 ('MetaSel ('Just "open_channel2_funding_pubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: (S1 ('MetaSel ('Just "open_channel2_revocation_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "open_channel2_payment_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point))) :*: (S1 ('MetaSel ('Just "open_channel2_delayed_payment_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: (S1 ('MetaSel ('Just "open_channel2_htlc_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "open_channel2_first_per_commitment_point") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)))) :*: ((S1 ('MetaSel ('Just "open_channel2_second_per_commitment_point") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: (S1 ('MetaSel ('Just "open_channel2_channel_flags") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word8) :*: S1 ('MetaSel ('Just "open_channel2_upfront_shutdown_script") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe ScriptPubKey)))) :*: (S1 ('MetaSel ('Just "open_channel2_channel_type") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe FeatureVector)) :*: (S1 ('MetaSel ('Just "open_channel2_require_confirmed_inputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "open_channel2_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))))
Show OpenChannel2 Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq OpenChannel2 Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep OpenChannel2 Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep OpenChannel2 = D1 ('MetaData "OpenChannel2" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "OpenChannel2" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "open_channel2_chain_hash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainHash) :*: S1 ('MetaSel ('Just "open_channel2_temporary_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId)) :*: (S1 ('MetaSel ('Just "open_channel2_funding_feerate_perkw") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "open_channel2_commitment_feerate_perkw") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "open_channel2_funding_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi)))) :*: ((S1 ('MetaSel ('Just "open_channel2_dust_limit_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi) :*: (S1 ('MetaSel ('Just "open_channel2_max_htlc_value_in_flight_msat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "open_channel2_htlc_minimum_msat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshi))) :*: (S1 ('MetaSel ('Just "open_channel2_to_self_delay") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: (S1 ('MetaSel ('Just "open_channel2_max_accepted_htlcs") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: S1 ('MetaSel ('Just "open_channel2_locktime") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32))))) :*: (((S1 ('MetaSel ('Just "open_channel2_funding_pubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: (S1 ('MetaSel ('Just "open_channel2_revocation_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "open_channel2_payment_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point))) :*: (S1 ('MetaSel ('Just "open_channel2_delayed_payment_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: (S1 ('MetaSel ('Just "open_channel2_htlc_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "open_channel2_first_per_commitment_point") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)))) :*: ((S1 ('MetaSel ('Just "open_channel2_second_per_commitment_point") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: (S1 ('MetaSel ('Just "open_channel2_channel_flags") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word8) :*: S1 ('MetaSel ('Just "open_channel2_upfront_shutdown_script") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe ScriptPubKey)))) :*: (S1 ('MetaSel ('Just "open_channel2_channel_type") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe FeatureVector)) :*: (S1 ('MetaSel ('Just "open_channel2_require_confirmed_inputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "open_channel2_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))))

data AcceptChannel2 Source #

The accept_channel2 message (type 65).

Instances

Instances details
NFData AcceptChannel2 Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: AcceptChannel2 -> () #

Generic AcceptChannel2 Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep AcceptChannel2 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep AcceptChannel2 = D1 ('MetaData "AcceptChannel2" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "AcceptChannel2" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "accept_channel2_temporary_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "accept_channel2_funding_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi)) :*: (S1 ('MetaSel ('Just "accept_channel2_dust_limit_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi) :*: S1 ('MetaSel ('Just "accept_channel2_max_htlc_value_in_flight_msat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64))) :*: ((S1 ('MetaSel ('Just "accept_channel2_htlc_minimum_msat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshi) :*: S1 ('MetaSel ('Just "accept_channel2_minimum_depth") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "accept_channel2_to_self_delay") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: (S1 ('MetaSel ('Just "accept_channel2_max_accepted_htlcs") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: S1 ('MetaSel ('Just "accept_channel2_funding_pubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point))))) :*: (((S1 ('MetaSel ('Just "accept_channel2_revocation_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "accept_channel2_payment_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)) :*: (S1 ('MetaSel ('Just "accept_channel2_delayed_payment_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: (S1 ('MetaSel ('Just "accept_channel2_htlc_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "accept_channel2_first_per_commitment_point") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)))) :*: ((S1 ('MetaSel ('Just "accept_channel2_second_per_commitment_point") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "accept_channel2_upfront_shutdown_script") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe ScriptPubKey))) :*: (S1 ('MetaSel ('Just "accept_channel2_channel_type") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe FeatureVector)) :*: (S1 ('MetaSel ('Just "accept_channel2_require_confirmed_inputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "accept_channel2_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))))
Show AcceptChannel2 Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq AcceptChannel2 Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep AcceptChannel2 Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep AcceptChannel2 = D1 ('MetaData "AcceptChannel2" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "AcceptChannel2" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "accept_channel2_temporary_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "accept_channel2_funding_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi)) :*: (S1 ('MetaSel ('Just "accept_channel2_dust_limit_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi) :*: S1 ('MetaSel ('Just "accept_channel2_max_htlc_value_in_flight_msat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64))) :*: ((S1 ('MetaSel ('Just "accept_channel2_htlc_minimum_msat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshi) :*: S1 ('MetaSel ('Just "accept_channel2_minimum_depth") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "accept_channel2_to_self_delay") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: (S1 ('MetaSel ('Just "accept_channel2_max_accepted_htlcs") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: S1 ('MetaSel ('Just "accept_channel2_funding_pubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point))))) :*: (((S1 ('MetaSel ('Just "accept_channel2_revocation_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "accept_channel2_payment_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)) :*: (S1 ('MetaSel ('Just "accept_channel2_delayed_payment_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: (S1 ('MetaSel ('Just "accept_channel2_htlc_basepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "accept_channel2_first_per_commitment_point") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)))) :*: ((S1 ('MetaSel ('Just "accept_channel2_second_per_commitment_point") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "accept_channel2_upfront_shutdown_script") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe ScriptPubKey))) :*: (S1 ('MetaSel ('Just "accept_channel2_channel_type") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe FeatureVector)) :*: (S1 ('MetaSel ('Just "accept_channel2_require_confirmed_inputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "accept_channel2_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))))

Interactive transaction construction

data TxAddInput Source #

The tx_add_input message (type 66).

Instances

Instances details
NFData TxAddInput Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: TxAddInput -> () #

Generic TxAddInput Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep TxAddInput 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxAddInput = D1 ('MetaData "TxAddInput" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "TxAddInput" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tx_add_input_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "tx_add_input_serial_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SerialId) :*: S1 ('MetaSel ('Just "tx_add_input_prevtx") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString))) :*: (S1 ('MetaSel ('Just "tx_add_input_prevtx_vout") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "tx_add_input_sequence") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "tx_add_input_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))
Show TxAddInput Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq TxAddInput Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxAddInput Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxAddInput = D1 ('MetaData "TxAddInput" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "TxAddInput" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tx_add_input_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "tx_add_input_serial_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SerialId) :*: S1 ('MetaSel ('Just "tx_add_input_prevtx") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString))) :*: (S1 ('MetaSel ('Just "tx_add_input_prevtx_vout") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "tx_add_input_sequence") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "tx_add_input_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))

data TxAddOutput Source #

The tx_add_output message (type 67).

Instances

Instances details
NFData TxAddOutput Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: TxAddOutput -> () #

Generic TxAddOutput Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep TxAddOutput 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxAddOutput = D1 ('MetaData "TxAddOutput" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "TxAddOutput" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tx_add_output_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "tx_add_output_serial_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SerialId)) :*: (S1 ('MetaSel ('Just "tx_add_output_sats") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi) :*: (S1 ('MetaSel ('Just "tx_add_output_script") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptPubKey) :*: S1 ('MetaSel ('Just "tx_add_output_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))
Show TxAddOutput Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq TxAddOutput Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxAddOutput Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxAddOutput = D1 ('MetaData "TxAddOutput" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "TxAddOutput" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tx_add_output_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "tx_add_output_serial_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SerialId)) :*: (S1 ('MetaSel ('Just "tx_add_output_sats") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi) :*: (S1 ('MetaSel ('Just "tx_add_output_script") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptPubKey) :*: S1 ('MetaSel ('Just "tx_add_output_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))

data TxRemoveInput Source #

The tx_remove_input message (type 68).

Instances

Instances details
NFData TxRemoveInput Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: TxRemoveInput -> () #

Generic TxRemoveInput Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep TxRemoveInput 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxRemoveInput = D1 ('MetaData "TxRemoveInput" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "TxRemoveInput" 'PrefixI 'True) (S1 ('MetaSel ('Just "tx_remove_input_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "tx_remove_input_serial_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SerialId) :*: S1 ('MetaSel ('Just "tx_remove_input_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))
Show TxRemoveInput Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq TxRemoveInput Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxRemoveInput Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxRemoveInput = D1 ('MetaData "TxRemoveInput" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "TxRemoveInput" 'PrefixI 'True) (S1 ('MetaSel ('Just "tx_remove_input_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "tx_remove_input_serial_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SerialId) :*: S1 ('MetaSel ('Just "tx_remove_input_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))

data TxRemoveOutput Source #

The tx_remove_output message (type 69).

Instances

Instances details
NFData TxRemoveOutput Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: TxRemoveOutput -> () #

Generic TxRemoveOutput Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep TxRemoveOutput 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxRemoveOutput = D1 ('MetaData "TxRemoveOutput" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "TxRemoveOutput" 'PrefixI 'True) (S1 ('MetaSel ('Just "tx_remove_output_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "tx_remove_output_serial_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SerialId) :*: S1 ('MetaSel ('Just "tx_remove_output_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))
Show TxRemoveOutput Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq TxRemoveOutput Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxRemoveOutput Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxRemoveOutput = D1 ('MetaData "TxRemoveOutput" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "TxRemoveOutput" 'PrefixI 'True) (S1 ('MetaSel ('Just "tx_remove_output_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "tx_remove_output_serial_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SerialId) :*: S1 ('MetaSel ('Just "tx_remove_output_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))

data TxComplete Source #

The tx_complete message (type 70).

Constructors

TxComplete 

Instances

Instances details
NFData TxComplete Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: TxComplete -> () #

Generic TxComplete Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep TxComplete 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxComplete = D1 ('MetaData "TxComplete" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "TxComplete" 'PrefixI 'True) (S1 ('MetaSel ('Just "tx_complete_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "tx_complete_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))
Show TxComplete Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq TxComplete Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxComplete Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxComplete = D1 ('MetaData "TxComplete" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "TxComplete" 'PrefixI 'True) (S1 ('MetaSel ('Just "tx_complete_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "tx_complete_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))

data TxSignatures Source #

The tx_signatures message (type 71).

Constructors

TxSignatures 

Fields

Instances

Instances details
NFData TxSignatures Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: TxSignatures -> () #

Generic TxSignatures Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep TxSignatures 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxSignatures = D1 ('MetaData "TxSignatures" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "TxSignatures" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tx_signatures_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "tx_signatures_txid") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxId)) :*: (S1 ('MetaSel ('Just "tx_signatures_witnesses") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Witness]) :*: S1 ('MetaSel ('Just "tx_signatures_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))
Show TxSignatures Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq TxSignatures Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxSignatures Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxSignatures = D1 ('MetaData "TxSignatures" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "TxSignatures" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tx_signatures_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "tx_signatures_txid") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxId)) :*: (S1 ('MetaSel ('Just "tx_signatures_witnesses") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Witness]) :*: S1 ('MetaSel ('Just "tx_signatures_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))

data TxInitRbf Source #

The tx_init_rbf message (type 72).

Instances

Instances details
NFData TxInitRbf Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: TxInitRbf -> () #

Generic TxInitRbf Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep TxInitRbf 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxInitRbf = D1 ('MetaData "TxInitRbf" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "TxInitRbf" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tx_init_rbf_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "tx_init_rbf_locktime") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "tx_init_rbf_feerate") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32))) :*: (S1 ('MetaSel ('Just "tx_init_rbf_funding_output_contribution") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Int64)) :*: (S1 ('MetaSel ('Just "tx_init_rbf_require_confirmed_inputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "tx_init_rbf_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))
Show TxInitRbf Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq TxInitRbf Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxInitRbf Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxInitRbf = D1 ('MetaData "TxInitRbf" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "TxInitRbf" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tx_init_rbf_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "tx_init_rbf_locktime") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "tx_init_rbf_feerate") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32))) :*: (S1 ('MetaSel ('Just "tx_init_rbf_funding_output_contribution") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Int64)) :*: (S1 ('MetaSel ('Just "tx_init_rbf_require_confirmed_inputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "tx_init_rbf_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))

data TxAckRbf Source #

The tx_ack_rbf message (type 73).

Instances

Instances details
NFData TxAckRbf Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: TxAckRbf -> () #

Generic TxAckRbf Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep TxAckRbf 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxAckRbf = D1 ('MetaData "TxAckRbf" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "TxAckRbf" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tx_ack_rbf_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "tx_ack_rbf_funding_output_contribution") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Int64))) :*: (S1 ('MetaSel ('Just "tx_ack_rbf_require_confirmed_inputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "tx_ack_rbf_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))

Methods

from :: TxAckRbf -> Rep TxAckRbf x #

to :: Rep TxAckRbf x -> TxAckRbf #

Show TxAckRbf Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq TxAckRbf Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxAckRbf Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxAckRbf = D1 ('MetaData "TxAckRbf" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "TxAckRbf" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tx_ack_rbf_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "tx_ack_rbf_funding_output_contribution") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Int64))) :*: (S1 ('MetaSel ('Just "tx_ack_rbf_require_confirmed_inputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "tx_ack_rbf_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))

data TxAbort Source #

The tx_abort message (type 74).

Constructors

TxAbort 

Instances

Instances details
NFData TxAbort Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: TxAbort -> () #

Generic TxAbort Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep TxAbort 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxAbort = D1 ('MetaData "TxAbort" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "TxAbort" 'PrefixI 'True) (S1 ('MetaSel ('Just "tx_abort_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "tx_abort_data") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "tx_abort_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))

Methods

from :: TxAbort -> Rep TxAbort x #

to :: Rep TxAbort x -> TxAbort #

Show TxAbort Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq TxAbort Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

(==) :: TxAbort -> TxAbort -> Bool #

(/=) :: TxAbort -> TxAbort -> Bool #

type Rep TxAbort Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep TxAbort = D1 ('MetaData "TxAbort" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "TxAbort" 'PrefixI 'True) (S1 ('MetaSel ('Just "tx_abort_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "tx_abort_data") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "tx_abort_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))

Channel quiescence

data Stfu Source #

The stfu message (type 2).

Constructors

Stfu 

Fields

Instances

Instances details
NFData Stfu Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: Stfu -> () #

Generic Stfu Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep Stfu 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep Stfu = D1 ('MetaData "Stfu" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "Stfu" 'PrefixI 'True) (S1 ('MetaSel ('Just "stfu_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "stfu_initiator") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "stfu_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))

Methods

from :: Stfu -> Rep Stfu x #

to :: Rep Stfu x -> Stfu #

Show Stfu Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

showsPrec :: Int -> Stfu -> ShowS #

show :: Stfu -> String #

showList :: [Stfu] -> ShowS #

Eq Stfu Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

(==) :: Stfu -> Stfu -> Bool #

(/=) :: Stfu -> Stfu -> Bool #

type Rep Stfu Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep Stfu = D1 ('MetaData "Stfu" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "Stfu" 'PrefixI 'True) (S1 ('MetaSel ('Just "stfu_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "stfu_initiator") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "stfu_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))

Channel close

data Shutdown Source #

The shutdown message (type 38).

Instances

Instances details
NFData Shutdown Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: Shutdown -> () #

Generic Shutdown Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep Shutdown 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep Shutdown = D1 ('MetaData "Shutdown" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "Shutdown" 'PrefixI 'True) (S1 ('MetaSel ('Just "shutdown_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "shutdown_scriptpubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptPubKey) :*: S1 ('MetaSel ('Just "shutdown_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))

Methods

from :: Shutdown -> Rep Shutdown x #

to :: Rep Shutdown x -> Shutdown #

Show Shutdown Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq Shutdown Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep Shutdown Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep Shutdown = D1 ('MetaData "Shutdown" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "Shutdown" 'PrefixI 'True) (S1 ('MetaSel ('Just "shutdown_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "shutdown_scriptpubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptPubKey) :*: S1 ('MetaSel ('Just "shutdown_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))

data ClosingComplete Source #

The closing_complete message (type 40).

Instances

Instances details
NFData ClosingComplete Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: ClosingComplete -> () #

Generic ClosingComplete Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep ClosingComplete 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep ClosingComplete = D1 ('MetaData "ClosingComplete" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "ClosingComplete" 'PrefixI 'True) (((S1 ('MetaSel ('Just "closing_complete_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "closing_complete_closer_scriptpubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptPubKey)) :*: (S1 ('MetaSel ('Just "closing_complete_closee_scriptpubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptPubKey) :*: S1 ('MetaSel ('Just "closing_complete_fee_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi))) :*: ((S1 ('MetaSel ('Just "closing_complete_locktime") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "closing_complete_closer_output_only") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Signature))) :*: (S1 ('MetaSel ('Just "closing_complete_closee_output_only") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Signature)) :*: (S1 ('MetaSel ('Just "closing_complete_closer_and_closee_outputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Signature)) :*: S1 ('MetaSel ('Just "closing_complete_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))))
Show ClosingComplete Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq ClosingComplete Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep ClosingComplete Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep ClosingComplete = D1 ('MetaData "ClosingComplete" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "ClosingComplete" 'PrefixI 'True) (((S1 ('MetaSel ('Just "closing_complete_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "closing_complete_closer_scriptpubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptPubKey)) :*: (S1 ('MetaSel ('Just "closing_complete_closee_scriptpubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptPubKey) :*: S1 ('MetaSel ('Just "closing_complete_fee_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi))) :*: ((S1 ('MetaSel ('Just "closing_complete_locktime") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "closing_complete_closer_output_only") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Signature))) :*: (S1 ('MetaSel ('Just "closing_complete_closee_output_only") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Signature)) :*: (S1 ('MetaSel ('Just "closing_complete_closer_and_closee_outputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Signature)) :*: S1 ('MetaSel ('Just "closing_complete_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))))

data ClosingSig Source #

The closing_sig message (type 41). A valid closing_sig carries exactly one signature, in a field set in the closing_complete it answers; checking that is left to the caller.

Instances

Instances details
NFData ClosingSig Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: ClosingSig -> () #

Generic ClosingSig Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep ClosingSig 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep ClosingSig = D1 ('MetaData "ClosingSig" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "ClosingSig" 'PrefixI 'True) (((S1 ('MetaSel ('Just "closing_sig_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "closing_sig_closer_scriptpubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptPubKey)) :*: (S1 ('MetaSel ('Just "closing_sig_closee_scriptpubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptPubKey) :*: S1 ('MetaSel ('Just "closing_sig_fee_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi))) :*: ((S1 ('MetaSel ('Just "closing_sig_locktime") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "closing_sig_closer_output_only") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Signature))) :*: (S1 ('MetaSel ('Just "closing_sig_closee_output_only") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Signature)) :*: (S1 ('MetaSel ('Just "closing_sig_closer_and_closee_outputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Signature)) :*: S1 ('MetaSel ('Just "closing_sig_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))))
Show ClosingSig Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq ClosingSig Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep ClosingSig Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep ClosingSig = D1 ('MetaData "ClosingSig" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "ClosingSig" 'PrefixI 'True) (((S1 ('MetaSel ('Just "closing_sig_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "closing_sig_closer_scriptpubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptPubKey)) :*: (S1 ('MetaSel ('Just "closing_sig_closee_scriptpubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptPubKey) :*: S1 ('MetaSel ('Just "closing_sig_fee_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi))) :*: ((S1 ('MetaSel ('Just "closing_sig_locktime") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "closing_sig_closer_output_only") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Signature))) :*: (S1 ('MetaSel ('Just "closing_sig_closee_output_only") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Signature)) :*: (S1 ('MetaSel ('Just "closing_sig_closer_and_closee_outputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Signature)) :*: S1 ('MetaSel ('Just "closing_sig_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))))

data ClosingSigned Source #

The legacy closing_signed message (type 39), used when option_simple_close is not negotiated.

Instances

Instances details
NFData ClosingSigned Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: ClosingSigned -> () #

Generic ClosingSigned Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep ClosingSigned 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep ClosingSigned = D1 ('MetaData "ClosingSigned" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "ClosingSigned" 'PrefixI 'True) ((S1 ('MetaSel ('Just "closing_signed_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "closing_signed_fee_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi)) :*: (S1 ('MetaSel ('Just "closing_signed_signature") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Signature) :*: (S1 ('MetaSel ('Just "closing_signed_fee_range") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe FeeRange)) :*: S1 ('MetaSel ('Just "closing_signed_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))
Show ClosingSigned Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq ClosingSigned Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep ClosingSigned Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep ClosingSigned = D1 ('MetaData "ClosingSigned" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "ClosingSigned" 'PrefixI 'True) ((S1 ('MetaSel ('Just "closing_signed_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "closing_signed_fee_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi)) :*: (S1 ('MetaSel ('Just "closing_signed_signature") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Signature) :*: (S1 ('MetaSel ('Just "closing_signed_fee_range") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe FeeRange)) :*: S1 ('MetaSel ('Just "closing_signed_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))

Normal operation

data UpdateAddHtlc Source #

The update_add_htlc message (type 128).

Instances

Instances details
NFData UpdateAddHtlc Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: UpdateAddHtlc -> () #

Generic UpdateAddHtlc Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep UpdateAddHtlc 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep UpdateAddHtlc = D1 ('MetaData "UpdateAddHtlc" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "UpdateAddHtlc" 'PrefixI 'True) (((S1 ('MetaSel ('Just "update_add_htlc_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "update_add_htlc_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 HtlcId)) :*: (S1 ('MetaSel ('Just "update_add_htlc_amount_msat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshi) :*: S1 ('MetaSel ('Just "update_add_htlc_payment_hash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PaymentHash))) :*: ((S1 ('MetaSel ('Just "update_add_htlc_cltv_expiry") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "update_add_htlc_onion_routing_packet") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 OnionRoutingPacket)) :*: (S1 ('MetaSel ('Just "update_add_htlc_path_key") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Point)) :*: S1 ('MetaSel ('Just "update_add_htlc_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))
Show UpdateAddHtlc Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq UpdateAddHtlc Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep UpdateAddHtlc Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep UpdateAddHtlc = D1 ('MetaData "UpdateAddHtlc" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "UpdateAddHtlc" 'PrefixI 'True) (((S1 ('MetaSel ('Just "update_add_htlc_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "update_add_htlc_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 HtlcId)) :*: (S1 ('MetaSel ('Just "update_add_htlc_amount_msat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshi) :*: S1 ('MetaSel ('Just "update_add_htlc_payment_hash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PaymentHash))) :*: ((S1 ('MetaSel ('Just "update_add_htlc_cltv_expiry") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "update_add_htlc_onion_routing_packet") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 OnionRoutingPacket)) :*: (S1 ('MetaSel ('Just "update_add_htlc_path_key") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Point)) :*: S1 ('MetaSel ('Just "update_add_htlc_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))

data UpdateFulfillHtlc Source #

The update_fulfill_htlc message (type 130).

Instances

Instances details
NFData UpdateFulfillHtlc Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: UpdateFulfillHtlc -> () #

Generic UpdateFulfillHtlc Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep UpdateFulfillHtlc 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep UpdateFulfillHtlc = D1 ('MetaData "UpdateFulfillHtlc" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "UpdateFulfillHtlc" 'PrefixI 'True) ((S1 ('MetaSel ('Just "update_fulfill_htlc_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "update_fulfill_htlc_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 HtlcId) :*: S1 ('MetaSel ('Just "update_fulfill_htlc_payment_preimage") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PaymentPreimage))) :*: (S1 ('MetaSel ('Just "update_fulfill_htlc_attribution_data") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe AttributionData)) :*: (S1 ('MetaSel ('Just "update_fulfill_htlc_fulfillment_payload") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe ByteString)) :*: S1 ('MetaSel ('Just "update_fulfill_htlc_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))
Show UpdateFulfillHtlc Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq UpdateFulfillHtlc Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep UpdateFulfillHtlc Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep UpdateFulfillHtlc = D1 ('MetaData "UpdateFulfillHtlc" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "UpdateFulfillHtlc" 'PrefixI 'True) ((S1 ('MetaSel ('Just "update_fulfill_htlc_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "update_fulfill_htlc_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 HtlcId) :*: S1 ('MetaSel ('Just "update_fulfill_htlc_payment_preimage") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PaymentPreimage))) :*: (S1 ('MetaSel ('Just "update_fulfill_htlc_attribution_data") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe AttributionData)) :*: (S1 ('MetaSel ('Just "update_fulfill_htlc_fulfillment_payload") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe ByteString)) :*: S1 ('MetaSel ('Just "update_fulfill_htlc_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))

data UpdateFailHtlc Source #

The update_fail_htlc message (type 131).

Instances

Instances details
NFData UpdateFailHtlc Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: UpdateFailHtlc -> () #

Generic UpdateFailHtlc Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep UpdateFailHtlc 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep UpdateFailHtlc = D1 ('MetaData "UpdateFailHtlc" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "UpdateFailHtlc" 'PrefixI 'True) ((S1 ('MetaSel ('Just "update_fail_htlc_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "update_fail_htlc_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 HtlcId)) :*: (S1 ('MetaSel ('Just "update_fail_htlc_reason") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString) :*: (S1 ('MetaSel ('Just "update_fail_htlc_attribution_data") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe AttributionData)) :*: S1 ('MetaSel ('Just "update_fail_htlc_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))
Show UpdateFailHtlc Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq UpdateFailHtlc Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep UpdateFailHtlc Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep UpdateFailHtlc = D1 ('MetaData "UpdateFailHtlc" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "UpdateFailHtlc" 'PrefixI 'True) ((S1 ('MetaSel ('Just "update_fail_htlc_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "update_fail_htlc_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 HtlcId)) :*: (S1 ('MetaSel ('Just "update_fail_htlc_reason") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString) :*: (S1 ('MetaSel ('Just "update_fail_htlc_attribution_data") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe AttributionData)) :*: S1 ('MetaSel ('Just "update_fail_htlc_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))

data UpdateFailMalformedHtlc Source #

The update_fail_malformed_htlc message (type 135).

Instances

Instances details
NFData UpdateFailMalformedHtlc Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: UpdateFailMalformedHtlc -> () #

Generic UpdateFailMalformedHtlc Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep UpdateFailMalformedHtlc 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep UpdateFailMalformedHtlc = D1 ('MetaData "UpdateFailMalformedHtlc" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "UpdateFailMalformedHtlc" 'PrefixI 'True) ((S1 ('MetaSel ('Just "update_fail_malformed_htlc_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "update_fail_malformed_htlc_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 HtlcId)) :*: (S1 ('MetaSel ('Just "update_fail_malformed_htlc_sha256_of_onion") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 OnionHash) :*: (S1 ('MetaSel ('Just "update_fail_malformed_htlc_failure_code") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: S1 ('MetaSel ('Just "update_fail_malformed_htlc_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))
Show UpdateFailMalformedHtlc Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq UpdateFailMalformedHtlc Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep UpdateFailMalformedHtlc Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep UpdateFailMalformedHtlc = D1 ('MetaData "UpdateFailMalformedHtlc" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "UpdateFailMalformedHtlc" 'PrefixI 'True) ((S1 ('MetaSel ('Just "update_fail_malformed_htlc_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "update_fail_malformed_htlc_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 HtlcId)) :*: (S1 ('MetaSel ('Just "update_fail_malformed_htlc_sha256_of_onion") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 OnionHash) :*: (S1 ('MetaSel ('Just "update_fail_malformed_htlc_failure_code") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: S1 ('MetaSel ('Just "update_fail_malformed_htlc_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))

data CommitmentSigned Source #

The commitment_signed message (type 132).

Instances

Instances details
NFData CommitmentSigned Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: CommitmentSigned -> () #

Generic CommitmentSigned Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep CommitmentSigned 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep CommitmentSigned = D1 ('MetaData "CommitmentSigned" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "CommitmentSigned" 'PrefixI 'True) ((S1 ('MetaSel ('Just "commitment_signed_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "commitment_signed_signature") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Signature)) :*: (S1 ('MetaSel ('Just "commitment_signed_htlc_signatures") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Signature]) :*: (S1 ('MetaSel ('Just "commitment_signed_funding_txid") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe TxId)) :*: S1 ('MetaSel ('Just "commitment_signed_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))
Show CommitmentSigned Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq CommitmentSigned Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep CommitmentSigned Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep CommitmentSigned = D1 ('MetaData "CommitmentSigned" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "CommitmentSigned" 'PrefixI 'True) ((S1 ('MetaSel ('Just "commitment_signed_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "commitment_signed_signature") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Signature)) :*: (S1 ('MetaSel ('Just "commitment_signed_htlc_signatures") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Signature]) :*: (S1 ('MetaSel ('Just "commitment_signed_funding_txid") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe TxId)) :*: S1 ('MetaSel ('Just "commitment_signed_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))

data RevokeAndAck Source #

The revoke_and_ack message (type 133).

Instances

Instances details
NFData RevokeAndAck Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: RevokeAndAck -> () #

Generic RevokeAndAck Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep RevokeAndAck 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep RevokeAndAck = D1 ('MetaData "RevokeAndAck" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "RevokeAndAck" 'PrefixI 'True) ((S1 ('MetaSel ('Just "revoke_and_ack_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "revoke_and_ack_per_commitment_secret") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PerCommitmentSecret)) :*: (S1 ('MetaSel ('Just "revoke_and_ack_next_per_commitment_point") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "revoke_and_ack_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))
Show RevokeAndAck Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq RevokeAndAck Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep RevokeAndAck Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep RevokeAndAck = D1 ('MetaData "RevokeAndAck" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "RevokeAndAck" 'PrefixI 'True) ((S1 ('MetaSel ('Just "revoke_and_ack_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "revoke_and_ack_per_commitment_secret") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PerCommitmentSecret)) :*: (S1 ('MetaSel ('Just "revoke_and_ack_next_per_commitment_point") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "revoke_and_ack_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))

data UpdateFee Source #

The update_fee message (type 134).

Instances

Instances details
NFData UpdateFee Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: UpdateFee -> () #

Generic UpdateFee Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep UpdateFee 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep UpdateFee = D1 ('MetaData "UpdateFee" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "UpdateFee" 'PrefixI 'True) (S1 ('MetaSel ('Just "update_fee_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "update_fee_feerate_per_kw") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "update_fee_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))
Show UpdateFee Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq UpdateFee Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep UpdateFee Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep UpdateFee = D1 ('MetaData "UpdateFee" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "UpdateFee" 'PrefixI 'True) (S1 ('MetaSel ('Just "update_fee_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "update_fee_feerate_per_kw") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "update_fee_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))

Message retransmission

data ChannelReestablish Source #

The channel_reestablish message (type 136).

Instances

Instances details
NFData ChannelReestablish Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Methods

rnf :: ChannelReestablish -> () #

Generic ChannelReestablish Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Associated Types

type Rep ChannelReestablish 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep ChannelReestablish = D1 ('MetaData "ChannelReestablish" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "ChannelReestablish" 'PrefixI 'True) ((S1 ('MetaSel ('Just "channel_reestablish_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "channel_reestablish_next_commitment_number") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "channel_reestablish_next_revocation_number") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64))) :*: ((S1 ('MetaSel ('Just "channel_reestablish_your_last_per_commitment_secret") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PerCommitmentSecret) :*: S1 ('MetaSel ('Just "channel_reestablish_my_current_per_commitment_point") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)) :*: (S1 ('MetaSel ('Just "channel_reestablish_next_funding") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe NextFunding)) :*: S1 ('MetaSel ('Just "channel_reestablish_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))
Show ChannelReestablish Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

Eq ChannelReestablish Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep ChannelReestablish Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Messages

type Rep ChannelReestablish = D1 ('MetaData "ChannelReestablish" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "ChannelReestablish" 'PrefixI 'True) ((S1 ('MetaSel ('Just "channel_reestablish_channel_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "channel_reestablish_next_commitment_number") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "channel_reestablish_next_revocation_number") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64))) :*: ((S1 ('MetaSel ('Just "channel_reestablish_your_last_per_commitment_secret") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PerCommitmentSecret) :*: S1 ('MetaSel ('Just "channel_reestablish_my_current_per_commitment_point") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)) :*: (S1 ('MetaSel ('Just "channel_reestablish_next_funding") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe NextFunding)) :*: S1 ('MetaSel ('Just "channel_reestablish_tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))

Field types

newtype HtlcId Source #

An HTLC identifier (the id field of the HTLC messages). The offerer numbers its HTLCs from 0, incrementing by 1.

Constructors

HtlcId Word64 

Instances

Instances details
NFData HtlcId Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Methods

rnf :: HtlcId -> () #

Generic HtlcId Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Associated Types

type Rep HtlcId 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep HtlcId = D1 ('MetaData "HtlcId" "Lightning.Protocol.BOLT2.Types" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'True) (C1 ('MetaCons "HtlcId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

Methods

from :: HtlcId -> Rep HtlcId x #

to :: Rep HtlcId x -> HtlcId #

Show HtlcId Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Eq HtlcId Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Methods

(==) :: HtlcId -> HtlcId -> Bool #

(/=) :: HtlcId -> HtlcId -> Bool #

Ord HtlcId Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep HtlcId Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep HtlcId = D1 ('MetaData "HtlcId" "Lightning.Protocol.BOLT2.Types" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'True) (C1 ('MetaCons "HtlcId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

newtype SerialId Source #

The serial_id of an input or output in interactive transaction construction. The initiator sends even values, the non-initiator odd ones.

Constructors

SerialId Word64 

Instances

Instances details
NFData SerialId Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Methods

rnf :: SerialId -> () #

Generic SerialId Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Associated Types

type Rep SerialId 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep SerialId = D1 ('MetaData "SerialId" "Lightning.Protocol.BOLT2.Types" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'True) (C1 ('MetaCons "SerialId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

Methods

from :: SerialId -> Rep SerialId x #

to :: Rep SerialId x -> SerialId #

Show SerialId Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Eq SerialId Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Ord SerialId Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep SerialId Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep SerialId = D1 ('MetaData "SerialId" "Lightning.Protocol.BOLT2.Types" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'True) (C1 ('MetaCons "SerialId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

data ScriptPubKey Source #

A scriptPubKey, at most 65535 bytes (the most a u16 length prefix can describe).

Instances

Instances details
NFData ScriptPubKey Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Methods

rnf :: ScriptPubKey -> () #

Generic ScriptPubKey Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Associated Types

type Rep ScriptPubKey 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep ScriptPubKey = D1 ('MetaData "ScriptPubKey" "Lightning.Protocol.BOLT2.Types" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'True) (C1 ('MetaCons "ScriptPubKey" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))
Show ScriptPubKey Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Eq ScriptPubKey Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Ord ScriptPubKey Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep ScriptPubKey Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep ScriptPubKey = D1 ('MetaData "ScriptPubKey" "Lightning.Protocol.BOLT2.Types" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'True) (C1 ('MetaCons "ScriptPubKey" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))

script_pubkey :: ByteString -> Maybe ScriptPubKey Source #

Construct a ScriptPubKey, failing above 65535 bytes. The script itself isn't checked; the forms acceptable in shutdown depend on negotiated features.

>>> script_pubkey "\x51\x02\x4e\x73"
Just (ScriptPubKey "Q\STXNs")
>>> script_pubkey (BS.replicate 65536 0x00)
Nothing

data Witness Source #

The serialized witness of one input in tx_signatures (encoded as in Bitcoin's wire protocol), at most 65535 bytes.

Instances

Instances details
NFData Witness Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Methods

rnf :: Witness -> () #

Generic Witness Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Associated Types

type Rep Witness 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep Witness = D1 ('MetaData "Witness" "Lightning.Protocol.BOLT2.Types" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'True) (C1 ('MetaCons "Witness" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))

Methods

from :: Witness -> Rep Witness x #

to :: Rep Witness x -> Witness #

Show Witness Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Eq Witness Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Methods

(==) :: Witness -> Witness -> Bool #

(/=) :: Witness -> Witness -> Bool #

Ord Witness Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep Witness Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep Witness = D1 ('MetaData "Witness" "Lightning.Protocol.BOLT2.Types" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'True) (C1 ('MetaCons "Witness" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))

witness :: ByteString -> Maybe Witness Source #

Construct a Witness, failing above 65535 bytes. The contents aren't checked.

>>> witness "\x01\x01\x2a"
Just (Witness "\SOH\SOH*")

data OnionRoutingPacket Source #

The 1366-byte onion_routing_packet of update_add_htlc, kept opaque (BOLT #4 defines its structure).

Instances

Instances details
NFData OnionRoutingPacket Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Methods

rnf :: OnionRoutingPacket -> () #

Generic OnionRoutingPacket Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Associated Types

type Rep OnionRoutingPacket 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep OnionRoutingPacket = D1 ('MetaData "OnionRoutingPacket" "Lightning.Protocol.BOLT2.Types" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'True) (C1 ('MetaCons "OnionRoutingPacket" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))
Show OnionRoutingPacket Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Eq OnionRoutingPacket Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Ord OnionRoutingPacket Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep OnionRoutingPacket Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep OnionRoutingPacket = D1 ('MetaData "OnionRoutingPacket" "Lightning.Protocol.BOLT2.Types" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'True) (C1 ('MetaCons "OnionRoutingPacket" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))

onion_routing_packet :: ByteString -> Maybe OnionRoutingPacket Source #

Construct an OnionRoutingPacket from exactly 1366 bytes.

>>> let bs = BS.replicate 1366 0x00
>>> fmap un_onion_routing_packet (onion_routing_packet bs) == Just bs
True
>>> onion_routing_packet (BS.take 1365 bs)
Nothing

data OnionHash Source #

The SHA256 hash of an onion routing packet (the sha256_of_onion field of update_fail_malformed_htlc).

Instances

Instances details
NFData OnionHash Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Methods

rnf :: OnionHash -> () #

Generic OnionHash Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Associated Types

type Rep OnionHash 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep OnionHash = D1 ('MetaData "OnionHash" "Lightning.Protocol.BOLT2.Types" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'True) (C1 ('MetaCons "OnionHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))
Show OnionHash Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Eq OnionHash Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Ord OnionHash Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep OnionHash Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep OnionHash = D1 ('MetaData "OnionHash" "Lightning.Protocol.BOLT2.Types" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'True) (C1 ('MetaCons "OnionHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))

onion_hash :: ByteString -> Maybe OnionHash Source #

Construct an OnionHash from exactly 32 bytes.

>>> onion_hash (BS.replicate 31 0x00)
Nothing

data AttributionData Source #

The 920-byte attribution_data of update_fulfill_htlc and update_fail_htlc: twenty u32 HTLC hold times followed by 210 four-byte truncated HMACs. Kept opaque (BOLT #4 defines its use).

Instances

Instances details
NFData AttributionData Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Methods

rnf :: AttributionData -> () #

Generic AttributionData Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Associated Types

type Rep AttributionData 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep AttributionData = D1 ('MetaData "AttributionData" "Lightning.Protocol.BOLT2.Types" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'True) (C1 ('MetaCons "AttributionData" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))
Show AttributionData Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Eq AttributionData Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Ord AttributionData Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep AttributionData Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep AttributionData = D1 ('MetaData "AttributionData" "Lightning.Protocol.BOLT2.Types" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'True) (C1 ('MetaCons "AttributionData" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))

attribution_data :: ByteString -> Maybe AttributionData Source #

Construct an AttributionData from exactly 920 bytes.

>>> let bs = BS.replicate 920 0x00
>>> fmap un_attribution_data (attribution_data bs) == Just bs
True
>>> attribution_data (BS.drop 1 bs)
Nothing

data FeeRange Source #

The fee_range of closing_signed: the fees the sender is prepared to pay for the closing transaction.

Instances

Instances details
NFData FeeRange Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Methods

rnf :: FeeRange -> () #

Generic FeeRange Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Associated Types

type Rep FeeRange 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep FeeRange = D1 ('MetaData "FeeRange" "Lightning.Protocol.BOLT2.Types" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "FeeRange" 'PrefixI 'True) (S1 ('MetaSel ('Just "fee_range_min_fee_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi) :*: S1 ('MetaSel ('Just "fee_range_max_fee_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi)))

Methods

from :: FeeRange -> Rep FeeRange x #

to :: Rep FeeRange x -> FeeRange #

Show FeeRange Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Eq FeeRange Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep FeeRange Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep FeeRange = D1 ('MetaData "FeeRange" "Lightning.Protocol.BOLT2.Types" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "FeeRange" 'PrefixI 'True) (S1 ('MetaSel ('Just "fee_range_min_fee_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi) :*: S1 ('MetaSel ('Just "fee_range_max_fee_satoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshi)))

data NextFunding Source #

The next_funding record of channel_reestablish: an interactive funding transaction whose signatures are still being exchanged.

Constructors

NextFunding 

Fields

Instances

Instances details
NFData NextFunding Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Methods

rnf :: NextFunding -> () #

Generic NextFunding Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Associated Types

type Rep NextFunding 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep NextFunding = D1 ('MetaData "NextFunding" "Lightning.Protocol.BOLT2.Types" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "NextFunding" 'PrefixI 'True) (S1 ('MetaSel ('Just "next_funding_txid") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxId) :*: S1 ('MetaSel ('Just "next_funding_retransmit_flags") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word8)))
Show NextFunding Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

Eq NextFunding Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep NextFunding Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Types

type Rep NextFunding = D1 ('MetaData "NextFunding" "Lightning.Protocol.BOLT2.Types" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "NextFunding" 'PrefixI 'True) (S1 ('MetaSel ('Just "next_funding_txid") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxId) :*: S1 ('MetaSel ('Just "next_funding_retransmit_flags") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word8)))

Encoding and decoding messages

encode_message :: Message -> Either EncodeError ByteString Source #

Encode a BOLT #2 message, including its type. Fails if a field can't be encoded or the result exceeds 65535 bytes.

>>> let stfu = Stfu cid True BOLT1.empty_tlv_stream
>>> fmap BS.length (encode_message (MsgStfu stfu))
Right 35

decode_message :: ByteString -> Either DecodeError Message Source #

Decode a BOLT #2 message, including its type.

A type that BOLT #2 doesn't define (including the splicing messages, which this library doesn't implement) yields DecodeUnknownEvenType or DecodeUnknownOddType.

>>> let wire = "\x00\x02" <> BS.replicate 32 0xab <> "\x01"
>>> fmap message_type (decode_message wire)
Right 2
>>> decode_message "\x00\x50"
Left (DecodeUnknownEvenType 80)

data EncodeError Source #

Why a message failed to encode.

Constructors

EncodeLengthOverflow

a length-prefixed field or a counted list exceeds 65535

EncodeInvalidTlvs

a _tlvs field contains a record of a type the message knows

EncodeMessageTooLarge

the message (type and payload) exceeds 65535 bytes

Instances

Instances details
NFData EncodeError Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Codec

Methods

rnf :: EncodeError -> () #

Generic EncodeError Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Codec

Associated Types

type Rep EncodeError 
Instance details

Defined in Lightning.Protocol.BOLT2.Codec

type Rep EncodeError = D1 ('MetaData "EncodeError" "Lightning.Protocol.BOLT2.Codec" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "EncodeLengthOverflow" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "EncodeInvalidTlvs" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EncodeMessageTooLarge" 'PrefixI 'False) (U1 :: Type -> Type)))
Show EncodeError Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Codec

Eq EncodeError Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Codec

type Rep EncodeError Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Codec

type Rep EncodeError = D1 ('MetaData "EncodeError" "Lightning.Protocol.BOLT2.Codec" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (C1 ('MetaCons "EncodeLengthOverflow" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "EncodeInvalidTlvs" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EncodeMessageTooLarge" 'PrefixI 'False) (U1 :: Type -> Type)))

data DecodeError Source #

Why a message failed to decode.

Constructors

DecodeInsufficientBytes

the input ended before a field did

DecodeInvalidPoint

a point lacks a compressed-encoding prefix

DecodeInvalidAmount

an amount exceeds 21 million BTC

DecodeInvalidInitiator

the initiator byte of stfu is neither 0 nor 1

DecodeTlvError !TlvError

the message's TLV stream is malformed, or has an unknown even type

DecodeInvalidTlvValue !Word64

a known TLV record (of the given type) has a malformed value

DecodeUnknownEvenType !Word16

a message type that BOLT #2 doesn't define (even)

DecodeUnknownOddType !Word16

a message type that BOLT #2 doesn't define (odd)

Instances

Instances details
NFData DecodeError Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Codec

Methods

rnf :: DecodeError -> () #

Generic DecodeError Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Codec

Associated Types

type Rep DecodeError 
Instance details

Defined in Lightning.Protocol.BOLT2.Codec

type Rep DecodeError = D1 ('MetaData "DecodeError" "Lightning.Protocol.BOLT2.Codec" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (((C1 ('MetaCons "DecodeInsufficientBytes" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DecodeInvalidPoint" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "DecodeInvalidAmount" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DecodeInvalidInitiator" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "DecodeTlvError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvError)) :+: C1 ('MetaCons "DecodeInvalidTlvValue" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64))) :+: (C1 ('MetaCons "DecodeUnknownEvenType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word16)) :+: C1 ('MetaCons "DecodeUnknownOddType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word16)))))
Show DecodeError Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Codec

Eq DecodeError Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Codec

type Rep DecodeError Source # 
Instance details

Defined in Lightning.Protocol.BOLT2.Codec

type Rep DecodeError = D1 ('MetaData "DecodeError" "Lightning.Protocol.BOLT2.Codec" "ppad-bolt2-0.1.0-GkwBVEcqXbr1J45sxzi5ww" 'False) (((C1 ('MetaCons "DecodeInsufficientBytes" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DecodeInvalidPoint" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "DecodeInvalidAmount" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DecodeInvalidInitiator" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "DecodeTlvError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvError)) :+: C1 ('MetaCons "DecodeInvalidTlvValue" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64))) :+: (C1 ('MetaCons "DecodeUnknownEvenType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word16)) :+: C1 ('MetaCons "DecodeUnknownOddType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word16)))))

Payloads

encode_tx_add_input :: TxAddInput -> Either EncodeError ByteString Source #

Encode a TxAddInput payload. Fails if prevtx exceeds 65535 bytes.

encode_tx_signatures :: TxSignatures -> Either EncodeError ByteString Source #

Encode a TxSignatures payload. Fails if there are more than 65535 witnesses.

encode_tx_abort :: TxAbort -> Either EncodeError ByteString Source #

Encode a TxAbort payload. Fails if data exceeds 65535 bytes.

encode_stfu :: Stfu -> ByteString Source #

Encode a Stfu payload.

decode_stfu :: ByteString -> Either DecodeError Stfu Source #

Decode a Stfu payload. The initiator byte must be 0 or 1.

encode_update_fail_htlc :: UpdateFailHtlc -> Either EncodeError ByteString Source #

Encode an UpdateFailHtlc payload. Fails if reason exceeds 65535 bytes.

encode_commitment_signed :: CommitmentSigned -> Either EncodeError ByteString Source #

Encode a CommitmentSigned payload. Fails if there are more than 65535 HTLC signatures.