| Copyright | (c) 2025 Jared Tobin |
|---|---|
| License | MIT |
| Maintainer | Jared Tobin <jared@ppad.tech> |
| Safe Haskell | None |
| Language | Haskell2010 |
Lightning.Protocol.BOLT2.Messages
Description
Message types for BOLT #2 peer protocol.
This module defines per-message record types and a top-level Message sum type for all BOLT #2 messages.
Synopsis
- data MsgType
- = MsgStfu
- | MsgOpenChannel
- | MsgAcceptChannel
- | MsgFundingCreated
- | MsgFundingSigned
- | MsgChannelReady
- | MsgShutdown
- | MsgClosingSigned
- | MsgClosingComplete
- | MsgClosingSig
- | MsgOpenChannel2
- | MsgAcceptChannel2
- | MsgTxAddInput
- | MsgTxAddOutput
- | MsgTxRemoveInput
- | MsgTxRemoveOutput
- | MsgTxComplete
- | MsgTxSignatures
- | MsgTxInitRbf
- | MsgTxAckRbf
- | MsgTxAbort
- | MsgUpdateAddHtlc
- | MsgUpdateFulfillHtlc
- | MsgUpdateFailHtlc
- | MsgCommitmentSigned
- | MsgRevokeAndAck
- | MsgUpdateFee
- | MsgUpdateFailMalformedHtlc
- | MsgChannelReestablish
- msgTypeWord :: MsgType -> Word16
- data Message
- = MsgOpenChannelVal !OpenChannel
- | MsgAcceptChannelVal !AcceptChannel
- | MsgFundingCreatedVal !FundingCreated
- | MsgFundingSignedVal !FundingSigned
- | MsgChannelReadyVal !ChannelReady
- | MsgOpenChannel2Val !OpenChannel2
- | MsgAcceptChannel2Val !AcceptChannel2
- | MsgTxAddInputVal !TxAddInput
- | MsgTxAddOutputVal !TxAddOutput
- | MsgTxRemoveInputVal !TxRemoveInput
- | MsgTxRemoveOutputVal !TxRemoveOutput
- | MsgTxCompleteVal !TxComplete
- | MsgTxSignaturesVal !TxSignatures
- | MsgTxInitRbfVal !TxInitRbf
- | MsgTxAckRbfVal !TxAckRbf
- | MsgTxAbortVal !TxAbort
- | MsgStfuVal !Stfu
- | MsgShutdownVal !Shutdown
- | MsgClosingSignedVal !ClosingSigned
- | MsgClosingCompleteVal !ClosingComplete
- | MsgClosingSigVal !ClosingSig
- | MsgUpdateAddHtlcVal !UpdateAddHtlc
- | MsgUpdateFulfillHtlcVal !UpdateFulfillHtlc
- | MsgUpdateFailHtlcVal !UpdateFailHtlc
- | MsgUpdateFailMalformedHtlcVal !UpdateFailMalformedHtlc
- | MsgCommitmentSignedVal !CommitmentSigned
- | MsgRevokeAndAckVal !RevokeAndAck
- | MsgUpdateFeeVal !UpdateFee
- | MsgChannelReestablishVal !ChannelReestablish
- data OpenChannel = OpenChannel {
- openChannelChainHash :: !ChainHash
- openChannelTempChannelId :: !ChannelId
- openChannelFundingSatoshis :: !Satoshis
- openChannelPushMsat :: !MilliSatoshis
- openChannelDustLimitSatoshis :: !Satoshis
- openChannelMaxHtlcValueInFlight :: !MilliSatoshis
- openChannelChannelReserveSat :: !Satoshis
- openChannelHtlcMinimumMsat :: !MilliSatoshis
- openChannelFeeratePerKw :: !Word32
- openChannelToSelfDelay :: !Word16
- openChannelMaxAcceptedHtlcs :: !Word16
- openChannelFundingPubkey :: !Point
- openChannelRevocationBasepoint :: !Point
- openChannelPaymentBasepoint :: !Point
- openChannelDelayedPaymentBase :: !Point
- openChannelHtlcBasepoint :: !Point
- openChannelFirstPerCommitPoint :: !Point
- openChannelChannelFlags :: !Word8
- openChannelTlvs :: !TlvStream
- data AcceptChannel = AcceptChannel {
- acceptChannelTempChannelId :: !ChannelId
- acceptChannelDustLimitSatoshis :: !Satoshis
- acceptChannelMaxHtlcValueInFlight :: !MilliSatoshis
- acceptChannelChannelReserveSat :: !Satoshis
- acceptChannelHtlcMinimumMsat :: !MilliSatoshis
- acceptChannelMinimumDepth :: !Word32
- acceptChannelToSelfDelay :: !Word16
- acceptChannelMaxAcceptedHtlcs :: !Word16
- acceptChannelFundingPubkey :: !Point
- acceptChannelRevocationBasepoint :: !Point
- acceptChannelPaymentBasepoint :: !Point
- acceptChannelDelayedPaymentBase :: !Point
- acceptChannelHtlcBasepoint :: !Point
- acceptChannelFirstPerCommitPoint :: !Point
- acceptChannelTlvs :: !TlvStream
- data FundingCreated = FundingCreated {}
- data FundingSigned = FundingSigned {}
- data ChannelReady = ChannelReady {}
- data OpenChannel2 = OpenChannel2 {
- openChannel2ChainHash :: !ChainHash
- openChannel2TempChannelId :: !ChannelId
- openChannel2FundingFeeratePerkw :: !Word32
- openChannel2CommitFeeratePerkw :: !Word32
- openChannel2FundingSatoshis :: !Satoshis
- openChannel2DustLimitSatoshis :: !Satoshis
- openChannel2MaxHtlcValueInFlight :: !MilliSatoshis
- openChannel2HtlcMinimumMsat :: !MilliSatoshis
- openChannel2ToSelfDelay :: !Word16
- openChannel2MaxAcceptedHtlcs :: !Word16
- openChannel2Locktime :: !Word32
- openChannel2FundingPubkey :: !Point
- openChannel2RevocationBasepoint :: !Point
- openChannel2PaymentBasepoint :: !Point
- openChannel2DelayedPaymentBase :: !Point
- openChannel2HtlcBasepoint :: !Point
- openChannel2FirstPerCommitPoint :: !Point
- openChannel2SecondPerCommitPoint :: !Point
- openChannel2ChannelFlags :: !Word8
- openChannel2Tlvs :: !TlvStream
- data AcceptChannel2 = AcceptChannel2 {
- acceptChannel2TempChannelId :: !ChannelId
- acceptChannel2FundingSatoshis :: !Satoshis
- acceptChannel2DustLimitSatoshis :: !Satoshis
- acceptChannel2MaxHtlcValueInFlight :: !MilliSatoshis
- acceptChannel2HtlcMinimumMsat :: !MilliSatoshis
- acceptChannel2MinimumDepth :: !Word32
- acceptChannel2ToSelfDelay :: !Word16
- acceptChannel2MaxAcceptedHtlcs :: !Word16
- acceptChannel2FundingPubkey :: !Point
- acceptChannel2RevocationBasepoint :: !Point
- acceptChannel2PaymentBasepoint :: !Point
- acceptChannel2DelayedPaymentBase :: !Point
- acceptChannel2HtlcBasepoint :: !Point
- acceptChannel2FirstPerCommitPoint :: !Point
- acceptChannel2SecondPerCommitPoint :: !Point
- acceptChannel2Tlvs :: !TlvStream
- data TxAddInput = TxAddInput {}
- data TxAddOutput = TxAddOutput {}
- data TxRemoveInput = TxRemoveInput {}
- data TxRemoveOutput = TxRemoveOutput {}
- data TxComplete = TxComplete {}
- data TxSignatures = TxSignatures {}
- data TxInitRbf = TxInitRbf {}
- data TxAckRbf = TxAckRbf {}
- data TxAbort = TxAbort {}
- data Stfu = Stfu {
- stfuChannelId :: !ChannelId
- stfuInitiator :: !Word8
- data Shutdown = Shutdown {}
- data ClosingSigned = ClosingSigned {}
- data ClosingComplete = ClosingComplete {}
- data ClosingSig = ClosingSig {}
- data UpdateAddHtlc = UpdateAddHtlc {}
- data UpdateFulfillHtlc = UpdateFulfillHtlc {}
- data UpdateFailHtlc = UpdateFailHtlc {}
- data UpdateFailMalformedHtlc = UpdateFailMalformedHtlc {}
- data CommitmentSigned = CommitmentSigned {}
- data RevokeAndAck = RevokeAndAck {}
- data UpdateFee = UpdateFee {}
- data ChannelReestablish = ChannelReestablish {}
- data Witness = Witness {}
Message type codes
BOLT #2 message type codes.
Constructors
Instances
| NFData MsgType Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages | |||||
| Generic MsgType Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show MsgType Source # | |||||
| Eq MsgType Source # | |||||
| Ord MsgType Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages | |||||
| type Rep MsgType Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep MsgType = D1 ('MetaData "MsgType" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) ((((C1 ('MetaCons "MsgStfu" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MsgOpenChannel" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MsgAcceptChannel" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "MsgFundingCreated" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MsgFundingSigned" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MsgChannelReady" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MsgShutdown" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "MsgClosingSigned" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MsgClosingComplete" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MsgClosingSig" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "MsgOpenChannel2" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MsgAcceptChannel2" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MsgTxAddInput" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MsgTxAddOutput" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "MsgTxRemoveInput" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MsgTxRemoveOutput" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MsgTxComplete" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "MsgTxSignatures" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MsgTxInitRbf" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MsgTxAckRbf" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MsgTxAbort" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "MsgUpdateAddHtlc" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MsgUpdateFulfillHtlc" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MsgUpdateFailHtlc" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MsgCommitmentSigned" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "MsgRevokeAndAck" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MsgUpdateFee" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MsgUpdateFailMalformedHtlc" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MsgChannelReestablish" 'PrefixI 'False) (U1 :: Type -> Type)))))) | |||||
msgTypeWord :: MsgType -> Word16 Source #
Get the numeric type code for a message type.
Top-level message type
All BOLT #2 messages.
Constructors
Instances
Channel establishment v1
data OpenChannel Source #
The open_channel message (type 32).
Contains information about a node and indicates its desire to set up a new channel.
Constructors
| OpenChannel | |
Fields
| |
Instances
| NFData OpenChannel Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: OpenChannel -> () # | |||||
| Generic OpenChannel Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show OpenChannel Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> OpenChannel -> ShowS # show :: OpenChannel -> String # showList :: [OpenChannel] -> ShowS # | |||||
| Eq OpenChannel Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages | |||||
| type Rep OpenChannel Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep OpenChannel = D1 ('MetaData "OpenChannel" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "OpenChannel" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "openChannelChainHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainHash) :*: S1 ('MetaSel ('Just "openChannelTempChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId)) :*: (S1 ('MetaSel ('Just "openChannelFundingSatoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshis) :*: S1 ('MetaSel ('Just "openChannelPushMsat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshis))) :*: ((S1 ('MetaSel ('Just "openChannelDustLimitSatoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshis) :*: S1 ('MetaSel ('Just "openChannelMaxHtlcValueInFlight") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshis)) :*: (S1 ('MetaSel ('Just "openChannelChannelReserveSat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshis) :*: (S1 ('MetaSel ('Just "openChannelHtlcMinimumMsat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshis) :*: S1 ('MetaSel ('Just "openChannelFeeratePerKw") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32))))) :*: (((S1 ('MetaSel ('Just "openChannelToSelfDelay") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: S1 ('MetaSel ('Just "openChannelMaxAcceptedHtlcs") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16)) :*: (S1 ('MetaSel ('Just "openChannelFundingPubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: (S1 ('MetaSel ('Just "openChannelRevocationBasepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "openChannelPaymentBasepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)))) :*: ((S1 ('MetaSel ('Just "openChannelDelayedPaymentBase") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "openChannelHtlcBasepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)) :*: (S1 ('MetaSel ('Just "openChannelFirstPerCommitPoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: (S1 ('MetaSel ('Just "openChannelChannelFlags") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word8) :*: S1 ('MetaSel ('Just "openChannelTlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))))) | |||||
data AcceptChannel Source #
The accept_channel message (type 33).
Contains information about a node and indicates its acceptance of the new channel.
Constructors
| AcceptChannel | |
Fields
| |
Instances
| NFData AcceptChannel Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: AcceptChannel -> () # | |||||
| Generic AcceptChannel Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show AcceptChannel Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> AcceptChannel -> ShowS # show :: AcceptChannel -> String # showList :: [AcceptChannel] -> ShowS # | |||||
| Eq AcceptChannel Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods (==) :: AcceptChannel -> AcceptChannel -> Bool # (/=) :: AcceptChannel -> AcceptChannel -> Bool # | |||||
| type Rep AcceptChannel Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep AcceptChannel = D1 ('MetaData "AcceptChannel" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "AcceptChannel" 'PrefixI 'True) (((S1 ('MetaSel ('Just "acceptChannelTempChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "acceptChannelDustLimitSatoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshis) :*: S1 ('MetaSel ('Just "acceptChannelMaxHtlcValueInFlight") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshis))) :*: ((S1 ('MetaSel ('Just "acceptChannelChannelReserveSat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshis) :*: S1 ('MetaSel ('Just "acceptChannelHtlcMinimumMsat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshis)) :*: (S1 ('MetaSel ('Just "acceptChannelMinimumDepth") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "acceptChannelToSelfDelay") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16)))) :*: (((S1 ('MetaSel ('Just "acceptChannelMaxAcceptedHtlcs") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: S1 ('MetaSel ('Just "acceptChannelFundingPubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)) :*: (S1 ('MetaSel ('Just "acceptChannelRevocationBasepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "acceptChannelPaymentBasepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point))) :*: ((S1 ('MetaSel ('Just "acceptChannelDelayedPaymentBase") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "acceptChannelHtlcBasepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)) :*: (S1 ('MetaSel ('Just "acceptChannelFirstPerCommitPoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "acceptChannelTlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))) | |||||
data FundingCreated Source #
The funding_created message (type 34).
Describes the outpoint which the funder has created for the initial commitment transactions.
Constructors
| FundingCreated | |
Instances
| NFData FundingCreated Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: FundingCreated -> () # | |||||
| Generic FundingCreated Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
Methods from :: FundingCreated -> Rep FundingCreated x # to :: Rep FundingCreated x -> FundingCreated # | |||||
| Show FundingCreated Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> FundingCreated -> ShowS # show :: FundingCreated -> String # showList :: [FundingCreated] -> ShowS # | |||||
| Eq FundingCreated Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods (==) :: FundingCreated -> FundingCreated -> Bool # (/=) :: FundingCreated -> FundingCreated -> Bool # | |||||
| type Rep FundingCreated Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep FundingCreated = D1 ('MetaData "FundingCreated" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "FundingCreated" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fundingCreatedTempChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "fundingCreatedFundingTxid") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxId)) :*: (S1 ('MetaSel ('Just "fundingCreatedFundingOutIdx") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: S1 ('MetaSel ('Just "fundingCreatedSignature") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Signature)))) | |||||
data FundingSigned Source #
The funding_signed message (type 35).
Gives the funder the signature for the first commitment transaction.
Constructors
| FundingSigned | |
Fields | |
Instances
| NFData FundingSigned Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: FundingSigned -> () # | |||||
| Generic FundingSigned Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show FundingSigned Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> FundingSigned -> ShowS # show :: FundingSigned -> String # showList :: [FundingSigned] -> ShowS # | |||||
| Eq FundingSigned Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods (==) :: FundingSigned -> FundingSigned -> Bool # (/=) :: FundingSigned -> FundingSigned -> Bool # | |||||
| type Rep FundingSigned Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep FundingSigned = D1 ('MetaData "FundingSigned" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "FundingSigned" 'PrefixI 'True) (S1 ('MetaSel ('Just "fundingSignedChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "fundingSignedSignature") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Signature))) | |||||
data ChannelReady Source #
The channel_ready message (type 36).
Indicates that the funding transaction has sufficient confirms for channel use.
Constructors
| ChannelReady | |
Fields | |
Instances
| NFData ChannelReady Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: ChannelReady -> () # | |||||
| Generic ChannelReady Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show ChannelReady Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> ChannelReady -> ShowS # show :: ChannelReady -> String # showList :: [ChannelReady] -> ShowS # | |||||
| Eq ChannelReady Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages | |||||
| type Rep ChannelReady Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep ChannelReady = D1 ('MetaData "ChannelReady" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "ChannelReady" 'PrefixI 'True) (S1 ('MetaSel ('Just "channelReadyChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "channelReadySecondPerCommitPoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "channelReadyTlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))) | |||||
Channel establishment v2
data OpenChannel2 Source #
The open_channel2 message (type 64).
Initiates the v2 channel establishment workflow.
Constructors
| OpenChannel2 | |
Fields
| |
Instances
| NFData OpenChannel2 Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: OpenChannel2 -> () # | |||||
| Generic OpenChannel2 Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show OpenChannel2 Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> OpenChannel2 -> ShowS # show :: OpenChannel2 -> String # showList :: [OpenChannel2] -> ShowS # | |||||
| Eq OpenChannel2 Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages | |||||
| type Rep OpenChannel2 Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep OpenChannel2 = D1 ('MetaData "OpenChannel2" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "OpenChannel2" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "openChannel2ChainHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainHash) :*: S1 ('MetaSel ('Just "openChannel2TempChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId)) :*: (S1 ('MetaSel ('Just "openChannel2FundingFeeratePerkw") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "openChannel2CommitFeeratePerkw") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "openChannel2FundingSatoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshis)))) :*: ((S1 ('MetaSel ('Just "openChannel2DustLimitSatoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshis) :*: S1 ('MetaSel ('Just "openChannel2MaxHtlcValueInFlight") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshis)) :*: (S1 ('MetaSel ('Just "openChannel2HtlcMinimumMsat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshis) :*: (S1 ('MetaSel ('Just "openChannel2ToSelfDelay") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: S1 ('MetaSel ('Just "openChannel2MaxAcceptedHtlcs") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16))))) :*: (((S1 ('MetaSel ('Just "openChannel2Locktime") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "openChannel2FundingPubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)) :*: (S1 ('MetaSel ('Just "openChannel2RevocationBasepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: (S1 ('MetaSel ('Just "openChannel2PaymentBasepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "openChannel2DelayedPaymentBase") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)))) :*: ((S1 ('MetaSel ('Just "openChannel2HtlcBasepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "openChannel2FirstPerCommitPoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)) :*: (S1 ('MetaSel ('Just "openChannel2SecondPerCommitPoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: (S1 ('MetaSel ('Just "openChannel2ChannelFlags") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word8) :*: S1 ('MetaSel ('Just "openChannel2Tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))))) | |||||
data AcceptChannel2 Source #
The accept_channel2 message (type 65).
Indicates acceptance of the v2 channel.
Constructors
| AcceptChannel2 | |
Fields
| |
Instances
| NFData AcceptChannel2 Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: AcceptChannel2 -> () # | |||||
| Generic AcceptChannel2 Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
Methods from :: AcceptChannel2 -> Rep AcceptChannel2 x # to :: Rep AcceptChannel2 x -> AcceptChannel2 # | |||||
| Show AcceptChannel2 Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> AcceptChannel2 -> ShowS # show :: AcceptChannel2 -> String # showList :: [AcceptChannel2] -> ShowS # | |||||
| Eq AcceptChannel2 Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods (==) :: AcceptChannel2 -> AcceptChannel2 -> Bool # (/=) :: AcceptChannel2 -> AcceptChannel2 -> Bool # | |||||
| type Rep AcceptChannel2 Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep AcceptChannel2 = D1 ('MetaData "AcceptChannel2" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "AcceptChannel2" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "acceptChannel2TempChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "acceptChannel2FundingSatoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshis)) :*: (S1 ('MetaSel ('Just "acceptChannel2DustLimitSatoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshis) :*: S1 ('MetaSel ('Just "acceptChannel2MaxHtlcValueInFlight") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshis))) :*: ((S1 ('MetaSel ('Just "acceptChannel2HtlcMinimumMsat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshis) :*: S1 ('MetaSel ('Just "acceptChannel2MinimumDepth") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "acceptChannel2ToSelfDelay") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16) :*: S1 ('MetaSel ('Just "acceptChannel2MaxAcceptedHtlcs") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16)))) :*: (((S1 ('MetaSel ('Just "acceptChannel2FundingPubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "acceptChannel2RevocationBasepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)) :*: (S1 ('MetaSel ('Just "acceptChannel2PaymentBasepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "acceptChannel2DelayedPaymentBase") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point))) :*: ((S1 ('MetaSel ('Just "acceptChannel2HtlcBasepoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "acceptChannel2FirstPerCommitPoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)) :*: (S1 ('MetaSel ('Just "acceptChannel2SecondPerCommitPoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "acceptChannel2Tlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))))) | |||||
data TxAddInput Source #
The tx_add_input message (type 66).
Adds a transaction input to the collaborative transaction.
Constructors
| TxAddInput | |
Fields | |
Instances
| NFData TxAddInput Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: TxAddInput -> () # | |||||
| Generic TxAddInput Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show TxAddInput Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> TxAddInput -> ShowS # show :: TxAddInput -> String # showList :: [TxAddInput] -> ShowS # | |||||
| Eq TxAddInput Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages | |||||
| type Rep TxAddInput Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep TxAddInput = D1 ('MetaData "TxAddInput" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "TxAddInput" 'PrefixI 'True) ((S1 ('MetaSel ('Just "txAddInputChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "txAddInputSerialId") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "txAddInputPrevTx") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString) :*: (S1 ('MetaSel ('Just "txAddInputPrevVout") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "txAddInputSequence") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32))))) | |||||
data TxAddOutput Source #
The tx_add_output message (type 67).
Adds a transaction output to the collaborative transaction.
Constructors
| TxAddOutput | |
Fields | |
Instances
| NFData TxAddOutput Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: TxAddOutput -> () # | |||||
| Generic TxAddOutput Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show TxAddOutput Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> TxAddOutput -> ShowS # show :: TxAddOutput -> String # showList :: [TxAddOutput] -> ShowS # | |||||
| Eq TxAddOutput Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages | |||||
| type Rep TxAddOutput Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep TxAddOutput = D1 ('MetaData "TxAddOutput" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "TxAddOutput" 'PrefixI 'True) ((S1 ('MetaSel ('Just "txAddOutputChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "txAddOutputSerialId") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "txAddOutputSats") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshis) :*: S1 ('MetaSel ('Just "txAddOutputScript") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptPubKey)))) | |||||
data TxRemoveInput Source #
The tx_remove_input message (type 68).
Removes a previously added input from the collaborative transaction.
Constructors
| TxRemoveInput | |
Fields | |
Instances
| NFData TxRemoveInput Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: TxRemoveInput -> () # | |||||
| Generic TxRemoveInput Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show TxRemoveInput Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> TxRemoveInput -> ShowS # show :: TxRemoveInput -> String # showList :: [TxRemoveInput] -> ShowS # | |||||
| Eq TxRemoveInput Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods (==) :: TxRemoveInput -> TxRemoveInput -> Bool # (/=) :: TxRemoveInput -> TxRemoveInput -> Bool # | |||||
| type Rep TxRemoveInput Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep TxRemoveInput = D1 ('MetaData "TxRemoveInput" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "TxRemoveInput" 'PrefixI 'True) (S1 ('MetaSel ('Just "txRemoveInputChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "txRemoveInputSerialId") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64))) | |||||
data TxRemoveOutput Source #
The tx_remove_output message (type 69).
Removes a previously added output from the collaborative transaction.
Constructors
| TxRemoveOutput | |
Fields | |
Instances
| NFData TxRemoveOutput Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: TxRemoveOutput -> () # | |||||
| Generic TxRemoveOutput Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
Methods from :: TxRemoveOutput -> Rep TxRemoveOutput x # to :: Rep TxRemoveOutput x -> TxRemoveOutput # | |||||
| Show TxRemoveOutput Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> TxRemoveOutput -> ShowS # show :: TxRemoveOutput -> String # showList :: [TxRemoveOutput] -> ShowS # | |||||
| Eq TxRemoveOutput Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods (==) :: TxRemoveOutput -> TxRemoveOutput -> Bool # (/=) :: TxRemoveOutput -> TxRemoveOutput -> Bool # | |||||
| type Rep TxRemoveOutput Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep TxRemoveOutput = D1 ('MetaData "TxRemoveOutput" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "TxRemoveOutput" 'PrefixI 'True) (S1 ('MetaSel ('Just "txRemoveOutputChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "txRemoveOutputSerialId") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64))) | |||||
data TxComplete Source #
The tx_complete message (type 70).
Signals the conclusion of a peer's transaction contributions.
Constructors
| TxComplete | |
Fields | |
Instances
| NFData TxComplete Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: TxComplete -> () # | |||||
| Generic TxComplete Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show TxComplete Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> TxComplete -> ShowS # show :: TxComplete -> String # showList :: [TxComplete] -> ShowS # | |||||
| Eq TxComplete Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages | |||||
| type Rep TxComplete Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep TxComplete = D1 ('MetaData "TxComplete" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "TxComplete" 'PrefixI 'True) (S1 ('MetaSel ('Just "txCompleteChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId))) | |||||
data TxSignatures Source #
The tx_signatures message (type 71).
Contains signatures for the collaborative transaction.
Constructors
| TxSignatures | |
Fields | |
Instances
| NFData TxSignatures Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: TxSignatures -> () # | |||||
| Generic TxSignatures Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show TxSignatures Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> TxSignatures -> ShowS # show :: TxSignatures -> String # showList :: [TxSignatures] -> ShowS # | |||||
| Eq TxSignatures Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages | |||||
| type Rep TxSignatures Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep TxSignatures = D1 ('MetaData "TxSignatures" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "TxSignatures" 'PrefixI 'True) (S1 ('MetaSel ('Just "txSignaturesChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "txSignaturesTxid") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxId) :*: S1 ('MetaSel ('Just "txSignaturesWitnesses") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Witness])))) | |||||
The tx_init_rbf message (type 72).
Initiates a replacement of the transaction after it's been completed.
Constructors
| TxInitRbf | |
Fields | |
Instances
| NFData TxInitRbf Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages | |||||
| Generic TxInitRbf Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show TxInitRbf Source # | |||||
| Eq TxInitRbf Source # | |||||
| type Rep TxInitRbf Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep TxInitRbf = D1 ('MetaData "TxInitRbf" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "TxInitRbf" 'PrefixI 'True) ((S1 ('MetaSel ('Just "txInitRbfChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "txInitRbfLocktime") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "txInitRbfFeerate") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "txInitRbfTlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))) | |||||
The tx_ack_rbf message (type 73).
Acknowledges an RBF attempt.
Constructors
| TxAckRbf | |
Fields | |
Instances
| NFData TxAckRbf Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages | |||||
| Generic TxAckRbf Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show TxAckRbf Source # | |||||
| Eq TxAckRbf Source # | |||||
| type Rep TxAckRbf Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep TxAckRbf = D1 ('MetaData "TxAckRbf" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "TxAckRbf" 'PrefixI 'True) (S1 ('MetaSel ('Just "txAckRbfChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "txAckRbfTlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))) | |||||
The tx_abort message (type 74).
Aborts the collaborative transaction negotiation.
Constructors
| TxAbort | |
Fields | |
Instances
| NFData TxAbort Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages | |||||
| Generic TxAbort Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show TxAbort Source # | |||||
| Eq TxAbort Source # | |||||
| type Rep TxAbort Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep TxAbort = D1 ('MetaData "TxAbort" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "TxAbort" 'PrefixI 'True) (S1 ('MetaSel ('Just "txAbortChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "txAbortData") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString))) | |||||
Channel close
The stfu message (type 2).
Indicates "SomeThing Fundamental is Underway" - used for channel quiescence.
Constructors
| Stfu | |
Fields
| |
Instances
| NFData Stfu Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages | |||||
| Generic Stfu Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show Stfu Source # | |||||
| Eq Stfu Source # | |||||
| type Rep Stfu Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep Stfu = D1 ('MetaData "Stfu" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "Stfu" 'PrefixI 'True) (S1 ('MetaSel ('Just "stfuChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "stfuInitiator") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word8))) | |||||
The shutdown message (type 38).
Initiates closing of the channel.
Constructors
| Shutdown | |
Fields | |
Instances
| NFData Shutdown Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages | |||||
| Generic Shutdown Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show Shutdown Source # | |||||
| Eq Shutdown Source # | |||||
| type Rep Shutdown Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep Shutdown = D1 ('MetaData "Shutdown" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "Shutdown" 'PrefixI 'True) (S1 ('MetaSel ('Just "shutdownChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "shutdownScriptPubkey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptPubKey))) | |||||
data ClosingSigned Source #
The closing_signed message (type 39).
Used in legacy closing negotiation.
Constructors
| ClosingSigned | |
Instances
| NFData ClosingSigned Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: ClosingSigned -> () # | |||||
| Generic ClosingSigned Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show ClosingSigned Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> ClosingSigned -> ShowS # show :: ClosingSigned -> String # showList :: [ClosingSigned] -> ShowS # | |||||
| Eq ClosingSigned Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods (==) :: ClosingSigned -> ClosingSigned -> Bool # (/=) :: ClosingSigned -> ClosingSigned -> Bool # | |||||
| type Rep ClosingSigned Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep ClosingSigned = D1 ('MetaData "ClosingSigned" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "ClosingSigned" 'PrefixI 'True) ((S1 ('MetaSel ('Just "closingSignedChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "closingSignedFeeSatoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshis)) :*: (S1 ('MetaSel ('Just "closingSignedSignature") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Signature) :*: S1 ('MetaSel ('Just "closingSignedTlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))) | |||||
data ClosingComplete Source #
The closing_complete message (type 40).
Proposes a closing transaction in the new closing protocol.
Constructors
| ClosingComplete | |
Instances
| NFData ClosingComplete Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: ClosingComplete -> () # | |||||
| Generic ClosingComplete Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
Methods from :: ClosingComplete -> Rep ClosingComplete x # to :: Rep ClosingComplete x -> ClosingComplete # | |||||
| Show ClosingComplete Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> ClosingComplete -> ShowS # show :: ClosingComplete -> String # showList :: [ClosingComplete] -> ShowS # | |||||
| Eq ClosingComplete Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods (==) :: ClosingComplete -> ClosingComplete -> Bool # (/=) :: ClosingComplete -> ClosingComplete -> Bool # | |||||
| type Rep ClosingComplete Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep ClosingComplete = D1 ('MetaData "ClosingComplete" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "ClosingComplete" 'PrefixI 'True) ((S1 ('MetaSel ('Just "closingCompleteChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "closingCompleteCloserScript") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptPubKey) :*: S1 ('MetaSel ('Just "closingCompleteCloseeScript") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptPubKey))) :*: (S1 ('MetaSel ('Just "closingCompleteFeeSatoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshis) :*: (S1 ('MetaSel ('Just "closingCompleteLocktime") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "closingCompleteTlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))) | |||||
data ClosingSig Source #
The closing_sig message (type 41).
Signs a closing transaction in the new closing protocol.
Constructors
| ClosingSig | |
Instances
| NFData ClosingSig Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: ClosingSig -> () # | |||||
| Generic ClosingSig Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show ClosingSig Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> ClosingSig -> ShowS # show :: ClosingSig -> String # showList :: [ClosingSig] -> ShowS # | |||||
| Eq ClosingSig Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages | |||||
| type Rep ClosingSig Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep ClosingSig = D1 ('MetaData "ClosingSig" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "ClosingSig" 'PrefixI 'True) ((S1 ('MetaSel ('Just "closingSigChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "closingSigCloserScript") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptPubKey) :*: S1 ('MetaSel ('Just "closingSigCloseeScript") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptPubKey))) :*: (S1 ('MetaSel ('Just "closingSigFeeSatoshis") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Satoshis) :*: (S1 ('MetaSel ('Just "closingSigLocktime") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "closingSigTlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))) | |||||
Normal operation
data UpdateAddHtlc Source #
The update_add_htlc message (type 128).
Offers an HTLC to the other node, redeemable in return for a payment preimage.
Constructors
| UpdateAddHtlc | |
Instances
| NFData UpdateAddHtlc Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: UpdateAddHtlc -> () # | |||||
| Generic UpdateAddHtlc Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show UpdateAddHtlc Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> UpdateAddHtlc -> ShowS # show :: UpdateAddHtlc -> String # showList :: [UpdateAddHtlc] -> ShowS # | |||||
| Eq UpdateAddHtlc Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods (==) :: UpdateAddHtlc -> UpdateAddHtlc -> Bool # (/=) :: UpdateAddHtlc -> UpdateAddHtlc -> Bool # | |||||
| type Rep UpdateAddHtlc Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep UpdateAddHtlc = D1 ('MetaData "UpdateAddHtlc" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "UpdateAddHtlc" 'PrefixI 'True) ((S1 ('MetaSel ('Just "updateAddHtlcChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "updateAddHtlcId") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "updateAddHtlcAmountMsat") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 MilliSatoshis))) :*: ((S1 ('MetaSel ('Just "updateAddHtlcPaymentHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PaymentHash) :*: S1 ('MetaSel ('Just "updateAddHtlcCltvExpiry") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "updateAddHtlcOnionPacket") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 OnionPacket) :*: S1 ('MetaSel ('Just "updateAddHtlcTlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))) | |||||
data UpdateFulfillHtlc Source #
The update_fulfill_htlc message (type 130).
Supplies the preimage to fulfill an HTLC.
Constructors
| UpdateFulfillHtlc | |
Instances
| NFData UpdateFulfillHtlc Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: UpdateFulfillHtlc -> () # | |||||
| Generic UpdateFulfillHtlc Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
Methods from :: UpdateFulfillHtlc -> Rep UpdateFulfillHtlc x # to :: Rep UpdateFulfillHtlc x -> UpdateFulfillHtlc # | |||||
| Show UpdateFulfillHtlc Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> UpdateFulfillHtlc -> ShowS # show :: UpdateFulfillHtlc -> String # showList :: [UpdateFulfillHtlc] -> ShowS # | |||||
| Eq UpdateFulfillHtlc Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods (==) :: UpdateFulfillHtlc -> UpdateFulfillHtlc -> Bool # (/=) :: UpdateFulfillHtlc -> UpdateFulfillHtlc -> Bool # | |||||
| type Rep UpdateFulfillHtlc Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep UpdateFulfillHtlc = D1 ('MetaData "UpdateFulfillHtlc" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "UpdateFulfillHtlc" 'PrefixI 'True) ((S1 ('MetaSel ('Just "updateFulfillHtlcChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "updateFulfillHtlcId") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "updateFulfillHtlcPaymentPreimage") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PaymentPreimage) :*: S1 ('MetaSel ('Just "updateFulfillHtlcTlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))) | |||||
data UpdateFailHtlc Source #
The update_fail_htlc message (type 131).
Indicates an HTLC has failed.
Constructors
| UpdateFailHtlc | |
Fields | |
Instances
| NFData UpdateFailHtlc Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: UpdateFailHtlc -> () # | |||||
| Generic UpdateFailHtlc Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
Methods from :: UpdateFailHtlc -> Rep UpdateFailHtlc x # to :: Rep UpdateFailHtlc x -> UpdateFailHtlc # | |||||
| Show UpdateFailHtlc Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> UpdateFailHtlc -> ShowS # show :: UpdateFailHtlc -> String # showList :: [UpdateFailHtlc] -> ShowS # | |||||
| Eq UpdateFailHtlc Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods (==) :: UpdateFailHtlc -> UpdateFailHtlc -> Bool # (/=) :: UpdateFailHtlc -> UpdateFailHtlc -> Bool # | |||||
| type Rep UpdateFailHtlc Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep UpdateFailHtlc = D1 ('MetaData "UpdateFailHtlc" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "UpdateFailHtlc" 'PrefixI 'True) ((S1 ('MetaSel ('Just "updateFailHtlcChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "updateFailHtlcId") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "updateFailHtlcReason") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "updateFailHtlcTlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))) | |||||
data UpdateFailMalformedHtlc Source #
The update_fail_malformed_htlc message (type 135).
Indicates an HTLC could not be parsed.
Constructors
| UpdateFailMalformedHtlc | |
Instances
| NFData UpdateFailMalformedHtlc Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: UpdateFailMalformedHtlc -> () # | |||||
| Generic UpdateFailMalformedHtlc Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
Methods from :: UpdateFailMalformedHtlc -> Rep UpdateFailMalformedHtlc x # to :: Rep UpdateFailMalformedHtlc x -> UpdateFailMalformedHtlc # | |||||
| Show UpdateFailMalformedHtlc Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> UpdateFailMalformedHtlc -> ShowS # show :: UpdateFailMalformedHtlc -> String # showList :: [UpdateFailMalformedHtlc] -> ShowS # | |||||
| Eq UpdateFailMalformedHtlc Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods (==) :: UpdateFailMalformedHtlc -> UpdateFailMalformedHtlc -> Bool # (/=) :: UpdateFailMalformedHtlc -> UpdateFailMalformedHtlc -> Bool # | |||||
| type Rep UpdateFailMalformedHtlc Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep UpdateFailMalformedHtlc = D1 ('MetaData "UpdateFailMalformedHtlc" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "UpdateFailMalformedHtlc" 'PrefixI 'True) ((S1 ('MetaSel ('Just "updateFailMalformedHtlcChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "updateFailMalformedHtlcId") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "updateFailMalformedHtlcSha256Onion") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PaymentHash) :*: S1 ('MetaSel ('Just "updateFailMalformedHtlcFailureCode") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word16)))) | |||||
data CommitmentSigned Source #
The commitment_signed message (type 132).
Applies pending changes and provides signatures for the commitment transaction.
Constructors
| CommitmentSigned | |
Instances
| NFData CommitmentSigned Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: CommitmentSigned -> () # | |||||
| Generic CommitmentSigned Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
Methods from :: CommitmentSigned -> Rep CommitmentSigned x # to :: Rep CommitmentSigned x -> CommitmentSigned # | |||||
| Show CommitmentSigned Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> CommitmentSigned -> ShowS # show :: CommitmentSigned -> String # showList :: [CommitmentSigned] -> ShowS # | |||||
| Eq CommitmentSigned Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods (==) :: CommitmentSigned -> CommitmentSigned -> Bool # (/=) :: CommitmentSigned -> CommitmentSigned -> Bool # | |||||
| type Rep CommitmentSigned Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep CommitmentSigned = D1 ('MetaData "CommitmentSigned" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "CommitmentSigned" 'PrefixI 'True) (S1 ('MetaSel ('Just "commitmentSignedChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "commitmentSignedSignature") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Signature) :*: S1 ('MetaSel ('Just "commitmentSignedHtlcSignatures") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Signature])))) | |||||
data RevokeAndAck Source #
The revoke_and_ack message (type 133).
Revokes the previous commitment transaction and acknowledges receipt of the commitment_signed.
Constructors
| RevokeAndAck | |
Instances
| NFData RevokeAndAck Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: RevokeAndAck -> () # | |||||
| Generic RevokeAndAck Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show RevokeAndAck Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> RevokeAndAck -> ShowS # show :: RevokeAndAck -> String # showList :: [RevokeAndAck] -> ShowS # | |||||
| Eq RevokeAndAck Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages | |||||
| type Rep RevokeAndAck Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep RevokeAndAck = D1 ('MetaData "RevokeAndAck" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "RevokeAndAck" 'PrefixI 'True) (S1 ('MetaSel ('Just "revokeAndAckChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "revokeAndAckPerCommitmentSecret") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Secret) :*: S1 ('MetaSel ('Just "revokeAndAckNextPerCommitPoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point)))) | |||||
The update_fee message (type 134).
Updates the fee rate for commitment transactions.
Constructors
| UpdateFee | |
Fields | |
Instances
| NFData UpdateFee Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages | |||||
| Generic UpdateFee Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show UpdateFee Source # | |||||
| Eq UpdateFee Source # | |||||
| type Rep UpdateFee Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep UpdateFee = D1 ('MetaData "UpdateFee" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "UpdateFee" 'PrefixI 'True) (S1 ('MetaSel ('Just "updateFeeChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "updateFeeFeeratePerKw") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word32))) | |||||
Reestablishment
data ChannelReestablish Source #
The channel_reestablish message (type 136).
Used to re-establish a channel after reconnection.
Constructors
| ChannelReestablish | |
Instances
| NFData ChannelReestablish Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods rnf :: ChannelReestablish -> () # | |||||
| Generic ChannelReestablish Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
Methods from :: ChannelReestablish -> Rep ChannelReestablish x # to :: Rep ChannelReestablish x -> ChannelReestablish # | |||||
| Show ChannelReestablish Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods showsPrec :: Int -> ChannelReestablish -> ShowS # show :: ChannelReestablish -> String # showList :: [ChannelReestablish] -> ShowS # | |||||
| Eq ChannelReestablish Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Methods (==) :: ChannelReestablish -> ChannelReestablish -> Bool # (/=) :: ChannelReestablish -> ChannelReestablish -> Bool # | |||||
| type Rep ChannelReestablish Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep ChannelReestablish = D1 ('MetaData "ChannelReestablish" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "ChannelReestablish" 'PrefixI 'True) ((S1 ('MetaSel ('Just "channelReestablishChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: (S1 ('MetaSel ('Just "channelReestablishNextCommitNum") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "channelReestablishNextRevocationNum") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64))) :*: (S1 ('MetaSel ('Just "channelReestablishYourLastCommitSecret") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Secret) :*: (S1 ('MetaSel ('Just "channelReestablishMyCurrentCommitPoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Point) :*: S1 ('MetaSel ('Just "channelReestablishTlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))) | |||||
Witness data
Witness data for tx_signatures.
Constructors
| Witness | |
Fields | |
Instances
| NFData Witness Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages | |||||
| Generic Witness Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages Associated Types
| |||||
| Show Witness Source # | |||||
| Eq Witness Source # | |||||
| type Rep Witness Source # | |||||
Defined in Lightning.Protocol.BOLT2.Messages type Rep Witness = D1 ('MetaData "Witness" "Lightning.Protocol.BOLT2.Messages" "ppad-bolt2-0.0.1-GZp2eCd2tiE8fNOn3OFks8" 'False) (C1 ('MetaCons "Witness" 'PrefixI 'True) (S1 ('MetaSel ('Just "witnessData") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString))) | |||||