Versions in this module Expand all Collapse all v0 v0.0.3 Sep 11, 2024 Changes in this version + const AltruistSessionsOptional + const AltruistSessionsRequired + const AnchorCommitOptional + const AnchorCommitRequired + const MaxCreateSessionReplyDataLength + const MaxMessagePayload + const TaprootCommitOptional + const TaprootCommitRequired + var FeatureNames = map[lnwire.FeatureBit]string + func MessageSummary(msg Message) string + func ReadElement(r io.Reader, element interface{}) error + func ReadElements(r io.Reader, elements ...interface{}) error + func WriteElement(w io.Writer, element interface{}) error + func WriteElements(w io.Writer, elements ...interface{}) error + func WriteMessage(w io.Writer, msg Message, pver uint32) (int, error) + type CreateSession struct + BlobType blob.Type + MaxUpdates uint16 + RewardBase uint32 + RewardRate uint32 + SweepFeeRate chainfee.SatPerKWeight + func (m *CreateSession) Decode(r io.Reader, pver uint32) error + func (m *CreateSession) Encode(w io.Writer, pver uint32) error + func (m *CreateSession) MaxPayloadLength(uint32) uint32 + func (m *CreateSession) MsgType() MessageType + type CreateSessionCode = ErrorCode + const CreateSessionCodeAlreadyExists + const CreateSessionCodeRejectBlobType + const CreateSessionCodeRejectMaxUpdates + const CreateSessionCodeRejectRewardRate + const CreateSessionCodeRejectSweepFeeRate + type CreateSessionReply struct + Code CreateSessionCode + Data []byte + LastApplied uint16 + func (m *CreateSessionReply) Decode(r io.Reader, pver uint32) error + func (m *CreateSessionReply) Encode(w io.Writer, pver uint32) error + func (m *CreateSessionReply) MaxPayloadLength(uint32) uint32 + func (m *CreateSessionReply) MsgType() MessageType + type DeleteSession struct + func (m *DeleteSession) Decode(r io.Reader, pver uint32) error + func (m *DeleteSession) Encode(w io.Writer, pver uint32) error + func (m *DeleteSession) MaxPayloadLength(uint32) uint32 + func (m *DeleteSession) MsgType() MessageType + type DeleteSessionCode = ErrorCode + const DeleteSessionCodeNotFound + type DeleteSessionReply struct + Code DeleteSessionCode + func (m *DeleteSessionReply) Decode(r io.Reader, pver uint32) error + func (m *DeleteSessionReply) Encode(w io.Writer, pver uint32) error + func (m *DeleteSessionReply) MaxPayloadLength(uint32) uint32 + func (m *DeleteSessionReply) MsgType() MessageType + type ErrUnknownChainHash struct + func NewErrUnknownChainHash(hash chainhash.Hash) *ErrUnknownChainHash + func (e *ErrUnknownChainHash) Error() string + type Error struct + Code ErrorCode + Data []byte + func NewError() *Error + func (e *Error) Decode(r io.Reader, pver uint32) error + func (e *Error) Encode(w io.Writer, prver uint32) error + func (e *Error) MaxPayloadLength(uint32) uint32 + func (e *Error) MsgType() MessageType + type ErrorCode uint16 + const CodeOK + const CodePermanentFailure + const CodeTemporaryFailure + func (c ErrorCode) String() string + type Init struct + ChainHash chainhash.Hash + ConnFeatures *lnwire.RawFeatureVector + func NewInitMessage(connFeatures *lnwire.RawFeatureVector, chainHash chainhash.Hash) *Init + func (msg *Init) CheckRemoteInit(remoteInit *Init, featureNames map[lnwire.FeatureBit]string) error + func (msg *Init) Decode(r io.Reader, pver uint32) error + func (msg *Init) Encode(w io.Writer, pver uint32) error + func (msg *Init) MaxPayloadLength(uint32) uint32 + func (msg *Init) MsgType() MessageType + type Message interface + MaxPayloadLength func(uint32) uint32 + MsgType func() MessageType + func ReadMessage(r io.Reader, pver uint32) (Message, error) + type MessageType uint16 + const MsgCreateSession + const MsgCreateSessionReply + const MsgDeleteSession + const MsgDeleteSessionReply + const MsgError + const MsgInit + const MsgStateUpdate + const MsgStateUpdateReply + func (m MessageType) String() string + type Serializable interface + Decode func(io.Reader, uint32) error + Encode func(io.Writer, uint32) error + type StateUpdate struct + EncryptedBlob []byte + Hint [16]byte + IsComplete uint8 + LastApplied uint16 + SeqNum uint16 + func (m *StateUpdate) Decode(r io.Reader, pver uint32) error + func (m *StateUpdate) Encode(w io.Writer, pver uint32) error + func (m *StateUpdate) MaxPayloadLength(uint32) uint32 + func (m *StateUpdate) MsgType() MessageType + type StateUpdateCode = ErrorCode + const StateUpdateCodeClientBehind + const StateUpdateCodeMaxUpdatesExceeded + const StateUpdateCodeSeqNumOutOfOrder + type StateUpdateReply struct + Code StateUpdateCode + LastApplied uint16 + func (t *StateUpdateReply) Decode(r io.Reader, pver uint32) error + func (t *StateUpdateReply) Encode(w io.Writer, pver uint32) error + func (t *StateUpdateReply) MaxPayloadLength(uint32) uint32 + func (t *StateUpdateReply) MsgType() MessageType