Versions in this module Expand all Collapse all v1 v1.0.0 May 10, 2019 Changes in this version + const CodeAmountBelowMinimum + const CodeChannelDisabled + const CodeExpiryTooFar + const CodeExpiryTooSoon + const CodeFeeInsufficient + const CodeFinalExpiryTooSoon + const CodeFinalIncorrectCltvExpiry + const CodeFinalIncorrectHtlcAmount + const CodeIncorrectCltvExpiry + const CodeIncorrectPaymentAmount + const CodeInvalidOnionHmac + const CodeInvalidOnionKey + const CodeInvalidOnionVersion + const CodeInvalidRealm + const CodeNone + const CodePermanentChannelFailure + const CodePermanentNodeFailure + const CodeRequiredChannelFeatureMissing + const CodeRequiredNodeFeatureMissing + const CodeTemporaryChannelFailure + const CodeTemporaryNodeFailure + const CodeUnknownNextPeer + const CodeUnknownPaymentHash + const FailureMessageLength + const MaxFundingTxOutputs + const MaxMessagePayload + const MaxSliceLength + const MsgAcceptChannel + const MsgAnnounceSignatures + const MsgChannelAnnouncement + const MsgChannelReestablish + const MsgChannelUpdate + const MsgClosingSigned + const MsgCommitSig + const MsgError + const MsgFundingCreated + const MsgFundingLocked + const MsgFundingSigned + const MsgGossipTimestampRange + const MsgInit + const MsgNodeAnnouncement + const MsgOpenChannel + const MsgPing + const MsgPong + const MsgQueryChannelRange + const MsgQueryShortChanIDs + const MsgReplyChannelRange + const MsgReplyShortChanIDsEnd + const MsgRevokeAndAck + const MsgShutdown + const MsgUpdateAddHTLC + const MsgUpdateFailHTLC + const MsgUpdateFailMalformedHTLC + const MsgUpdateFee + const MsgUpdateFulfillHTLC + const OnionPacketSize + var ConnectionWideID = ChannelID + var GlobalFeatures map[FeatureBit]string + var LocalFeatures = map[FeatureBit]string + func EncodeFailure(w io.Writer, failure FailureMessage, pver uint32) error + func ErrUnknownShortChanIDEncoding(encoding ShortChanIDEncoding) error + func ReadElement(r io.Reader, element interface{}) error + func ReadElements(r io.Reader, elements ...interface{}) error + func UpdateNodeAnnAddrs(addrs []net.Addr) func(*NodeAnnouncement) + 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 AcceptChannel struct + ChannelReserve btcutil.Amount + CsvDelay uint16 + DelayedPaymentPoint *btcec.PublicKey + DustLimit btcutil.Amount + FirstCommitmentPoint *btcec.PublicKey + FundingKey *btcec.PublicKey + HtlcMinimum MilliSatoshi + HtlcPoint *btcec.PublicKey + MaxAcceptedHTLCs uint16 + MaxValueInFlight MilliSatoshi + MinAcceptDepth uint32 + PaymentPoint *btcec.PublicKey + PendingChannelID [32]byte + RevocationPoint *btcec.PublicKey + func (a *AcceptChannel) Decode(r io.Reader, pver uint32) error + func (a *AcceptChannel) Encode(w io.Writer, pver uint32) error + func (a *AcceptChannel) MaxPayloadLength(uint32) uint32 + func (a *AcceptChannel) MsgType() MessageType + type AnnounceSignatures struct + BitcoinSignature Sig + ChannelID ChannelID + ExtraOpaqueData []byte + NodeSignature Sig + ShortChannelID ShortChannelID + func (a *AnnounceSignatures) Decode(r io.Reader, pver uint32) error + func (a *AnnounceSignatures) Encode(w io.Writer, pver uint32) error + func (a *AnnounceSignatures) MaxPayloadLength(pver uint32) uint32 + func (a *AnnounceSignatures) MsgType() MessageType + type ChanUpdateChanFlags uint8 + const ChanUpdateDirection + const ChanUpdateDisabled + func (c ChanUpdateChanFlags) String() string + type ChanUpdateMsgFlags uint8 + const ChanUpdateOptionMaxHtlc + func (c ChanUpdateMsgFlags) HasMaxHtlc() bool + func (c ChanUpdateMsgFlags) String() string + type ChannelAnnouncement struct + BitcoinKey1 [33]byte + BitcoinKey2 [33]byte + BitcoinSig1 Sig + BitcoinSig2 Sig + ChainHash chainhash.Hash + ExtraOpaqueData []byte + Features *RawFeatureVector + NodeID1 [33]byte + NodeID2 [33]byte + NodeSig1 Sig + NodeSig2 Sig + ShortChannelID ShortChannelID + func (a *ChannelAnnouncement) DataToSign() ([]byte, error) + func (a *ChannelAnnouncement) Decode(r io.Reader, pver uint32) error + func (a *ChannelAnnouncement) Encode(w io.Writer, pver uint32) error + func (a *ChannelAnnouncement) MaxPayloadLength(pver uint32) uint32 + func (a *ChannelAnnouncement) MsgType() MessageType + type ChannelID [32]byte + func NewChanIDFromOutPoint(op *wire.OutPoint) ChannelID + func (c *ChannelID) GenPossibleOutPoints() [MaxFundingTxOutputs]wire.OutPoint + func (c ChannelID) IsChanPoint(op *wire.OutPoint) bool + func (c ChannelID) String() string + type ChannelReestablish struct + ChanID ChannelID + LastRemoteCommitSecret [32]byte + LocalUnrevokedCommitPoint *btcec.PublicKey + NextLocalCommitHeight uint64 + RemoteCommitTailHeight uint64 + func (a *ChannelReestablish) Decode(r io.Reader, pver uint32) error + func (a *ChannelReestablish) Encode(w io.Writer, pver uint32) error + func (a *ChannelReestablish) MaxPayloadLength(pver uint32) uint32 + func (a *ChannelReestablish) MsgType() MessageType + type ChannelUpdate struct + BaseFee uint32 + ChainHash chainhash.Hash + ChannelFlags ChanUpdateChanFlags + ExtraOpaqueData []byte + FeeRate uint32 + HtlcMaximumMsat MilliSatoshi + HtlcMinimumMsat MilliSatoshi + MessageFlags ChanUpdateMsgFlags + ShortChannelID ShortChannelID + Signature Sig + TimeLockDelta uint16 + Timestamp uint32 + func (a *ChannelUpdate) DataToSign() ([]byte, error) + func (a *ChannelUpdate) Decode(r io.Reader, pver uint32) error + func (a *ChannelUpdate) Encode(w io.Writer, pver uint32) error + func (a *ChannelUpdate) MaxPayloadLength(pver uint32) uint32 + func (a *ChannelUpdate) MsgType() MessageType + type ClosingSigned struct + ChannelID ChannelID + FeeSatoshis btcutil.Amount + Signature Sig + func NewClosingSigned(cid ChannelID, fs btcutil.Amount, sig Sig) *ClosingSigned + func (c *ClosingSigned) Decode(r io.Reader, pver uint32) error + func (c *ClosingSigned) Encode(w io.Writer, pver uint32) error + func (c *ClosingSigned) MaxPayloadLength(uint32) uint32 + func (c *ClosingSigned) MsgType() MessageType + type CommitSig struct + ChanID ChannelID + CommitSig Sig + HtlcSigs []Sig + func NewCommitSig() *CommitSig + func (c *CommitSig) Decode(r io.Reader, pver uint32) error + func (c *CommitSig) Encode(w io.Writer, pver uint32) error + func (c *CommitSig) MaxPayloadLength(uint32) uint32 + func (c *CommitSig) MsgType() MessageType + type DeliveryAddress []byte + type ErrInvalidNodeAlias struct + func (e ErrInvalidNodeAlias) Error() string + type ErrUnknownAddrType struct + func (e ErrUnknownAddrType) Error() string + type Error struct + ChanID ChannelID + Data ErrorData + func NewError() *Error + func (c *Error) Decode(r io.Reader, pver uint32) error + func (c *Error) Encode(w io.Writer, pver uint32) error + func (c *Error) MaxPayloadLength(uint32) uint32 + func (c *Error) MsgType() MessageType + type ErrorCode uint8 + const ErrChanTooLarge + const ErrMaxPendingChannels + const ErrSynchronizingChain + func (e ErrorCode) Error() string + func (e ErrorCode) String() string + func (e ErrorCode) ToGrpcCode() codes.Code + type ErrorData []byte + type FailAmountBelowMinimum struct + HtlcMsat MilliSatoshi + Update ChannelUpdate + func NewAmountBelowMinimum(htlcMsat MilliSatoshi, update ChannelUpdate) *FailAmountBelowMinimum + func (f *FailAmountBelowMinimum) Code() FailCode + func (f *FailAmountBelowMinimum) Decode(r io.Reader, pver uint32) error + func (f *FailAmountBelowMinimum) Encode(w io.Writer, pver uint32) error + func (f FailAmountBelowMinimum) Error() string + type FailChannelDisabled struct + Flags uint16 + Update ChannelUpdate + func NewChannelDisabled(flags uint16, update ChannelUpdate) *FailChannelDisabled + func (f *FailChannelDisabled) Code() FailCode + func (f *FailChannelDisabled) Decode(r io.Reader, pver uint32) error + func (f *FailChannelDisabled) Encode(w io.Writer, pver uint32) error + func (f FailChannelDisabled) Error() string + type FailCode uint16 + const FlagBadOnion + const FlagNode + const FlagPerm + const FlagUpdate + func (c FailCode) String() string + type FailExpiryTooFar struct + func (f FailExpiryTooFar) Code() FailCode + func (f FailExpiryTooFar) Error() string + type FailExpiryTooSoon struct + Update ChannelUpdate + func NewExpiryTooSoon(update ChannelUpdate) *FailExpiryTooSoon + func (f *FailExpiryTooSoon) Code() FailCode + func (f *FailExpiryTooSoon) Decode(r io.Reader, pver uint32) error + func (f *FailExpiryTooSoon) Encode(w io.Writer, pver uint32) error + func (f *FailExpiryTooSoon) Error() string + type FailFeeInsufficient struct + HtlcMsat MilliSatoshi + Update ChannelUpdate + func NewFeeInsufficient(htlcMsat MilliSatoshi, update ChannelUpdate) *FailFeeInsufficient + func (f *FailFeeInsufficient) Code() FailCode + func (f *FailFeeInsufficient) Decode(r io.Reader, pver uint32) error + func (f *FailFeeInsufficient) Encode(w io.Writer, pver uint32) error + func (f FailFeeInsufficient) Error() string + type FailFinalExpiryTooSoon struct + func NewFinalExpiryTooSoon() *FailFinalExpiryTooSoon + func (f FailFinalExpiryTooSoon) Code() FailCode + func (f FailFinalExpiryTooSoon) Error() string + type FailFinalIncorrectCltvExpiry struct + CltvExpiry uint32 + func NewFinalIncorrectCltvExpiry(cltvExpiry uint32) *FailFinalIncorrectCltvExpiry + func (f *FailFinalIncorrectCltvExpiry) Code() FailCode + func (f *FailFinalIncorrectCltvExpiry) Decode(r io.Reader, pver uint32) error + func (f *FailFinalIncorrectCltvExpiry) Encode(w io.Writer, pver uint32) error + func (f FailFinalIncorrectCltvExpiry) Error() string + type FailFinalIncorrectHtlcAmount struct + IncomingHTLCAmount MilliSatoshi + func NewFinalIncorrectHtlcAmount(amount MilliSatoshi) *FailFinalIncorrectHtlcAmount + func (f *FailFinalIncorrectHtlcAmount) Code() FailCode + func (f *FailFinalIncorrectHtlcAmount) Decode(r io.Reader, pver uint32) error + func (f *FailFinalIncorrectHtlcAmount) Encode(w io.Writer, pver uint32) error + func (f FailFinalIncorrectHtlcAmount) Error() string + type FailIncorrectCltvExpiry struct + CltvExpiry uint32 + Update ChannelUpdate + func NewIncorrectCltvExpiry(cltvExpiry uint32, update ChannelUpdate) *FailIncorrectCltvExpiry + func (f *FailIncorrectCltvExpiry) Code() FailCode + func (f *FailIncorrectCltvExpiry) Decode(r io.Reader, pver uint32) error + func (f *FailIncorrectCltvExpiry) Encode(w io.Writer, pver uint32) error + func (f *FailIncorrectCltvExpiry) Error() string + type FailIncorrectPaymentAmount struct + func (f FailIncorrectPaymentAmount) Code() FailCode + func (f FailIncorrectPaymentAmount) Error() string + type FailInvalidOnionHmac struct + OnionSHA256 [sha256.Size]byte + func NewInvalidOnionHmac(onion []byte) *FailInvalidOnionHmac + func (f *FailInvalidOnionHmac) Code() FailCode + func (f *FailInvalidOnionHmac) Decode(r io.Reader, pver uint32) error + func (f *FailInvalidOnionHmac) Encode(w io.Writer, pver uint32) error + func (f FailInvalidOnionHmac) Error() string + type FailInvalidOnionKey struct + OnionSHA256 [sha256.Size]byte + func NewInvalidOnionKey(onion []byte) *FailInvalidOnionKey + func (f *FailInvalidOnionKey) Code() FailCode + func (f *FailInvalidOnionKey) Decode(r io.Reader, pver uint32) error + func (f *FailInvalidOnionKey) Encode(w io.Writer, pver uint32) error + func (f FailInvalidOnionKey) Error() string + type FailInvalidOnionVersion struct + OnionSHA256 [sha256.Size]byte + func NewInvalidOnionVersion(onion []byte) *FailInvalidOnionVersion + func (f *FailInvalidOnionVersion) Code() FailCode + func (f *FailInvalidOnionVersion) Decode(r io.Reader, pver uint32) error + func (f *FailInvalidOnionVersion) Encode(w io.Writer, pver uint32) error + func (f FailInvalidOnionVersion) Error() string + type FailInvalidRealm struct + func (f FailInvalidRealm) Code() FailCode + func (f FailInvalidRealm) Error() string + type FailPermanentChannelFailure struct + func (f FailPermanentChannelFailure) Code() FailCode + func (f FailPermanentChannelFailure) Error() string + type FailPermanentNodeFailure struct + func (f FailPermanentNodeFailure) Code() FailCode + func (f FailPermanentNodeFailure) Error() string + type FailRequiredChannelFeatureMissing struct + func (f FailRequiredChannelFeatureMissing) Code() FailCode + func (f FailRequiredChannelFeatureMissing) Error() string + type FailRequiredNodeFeatureMissing struct + func (f FailRequiredNodeFeatureMissing) Code() FailCode + func (f FailRequiredNodeFeatureMissing) Error() string + type FailTemporaryChannelFailure struct + Update *ChannelUpdate + func NewTemporaryChannelFailure(update *ChannelUpdate) *FailTemporaryChannelFailure + func (f *FailTemporaryChannelFailure) Code() FailCode + func (f *FailTemporaryChannelFailure) Decode(r io.Reader, pver uint32) error + func (f *FailTemporaryChannelFailure) Encode(w io.Writer, pver uint32) error + func (f FailTemporaryChannelFailure) Error() string + type FailTemporaryNodeFailure struct + func (f FailTemporaryNodeFailure) Code() FailCode + func (f FailTemporaryNodeFailure) Error() string + type FailUnknownNextPeer struct + func (f FailUnknownNextPeer) Code() FailCode + func (f FailUnknownNextPeer) Error() string + type FailUnknownPaymentHash struct + func NewFailUnknownPaymentHash(amt MilliSatoshi) *FailUnknownPaymentHash + func (f *FailUnknownPaymentHash) Decode(r io.Reader, pver uint32) error + func (f *FailUnknownPaymentHash) Encode(w io.Writer, pver uint32) error + func (f FailUnknownPaymentHash) Amount() MilliSatoshi + func (f FailUnknownPaymentHash) Code() FailCode + func (f FailUnknownPaymentHash) Error() string + type FailureMessage interface + Code func() FailCode + Error func() string + func DecodeFailure(r io.Reader, pver uint32) (FailureMessage, error) + type FeatureBit uint16 + const DataLossProtectOptional + const DataLossProtectRequired + const GossipQueriesOptional + const GossipQueriesRequired + const InitialRoutingSync + type FeatureVector struct + func NewFeatureVector(featureVector *RawFeatureVector, featureNames map[FeatureBit]string) *FeatureVector + func (fv *FeatureVector) HasFeature(feature FeatureBit) bool + func (fv *FeatureVector) IsKnown(bit FeatureBit) bool + func (fv *FeatureVector) Name(bit FeatureBit) string + func (fv *FeatureVector) UnknownRequiredFeatures() []FeatureBit + type FundingCreated struct + CommitSig Sig + FundingPoint wire.OutPoint + PendingChannelID [32]byte + func (f *FundingCreated) Decode(r io.Reader, pver uint32) error + func (f *FundingCreated) Encode(w io.Writer, pver uint32) error + func (f *FundingCreated) MaxPayloadLength(uint32) uint32 + func (f *FundingCreated) MsgType() MessageType + type FundingFlag uint8 + const FFAnnounceChannel + type FundingLocked struct + ChanID ChannelID + NextPerCommitmentPoint *btcec.PublicKey + func NewFundingLocked(cid ChannelID, npcp *btcec.PublicKey) *FundingLocked + func (c *FundingLocked) Decode(r io.Reader, pver uint32) error + func (c *FundingLocked) Encode(w io.Writer, pver uint32) error + func (c *FundingLocked) MaxPayloadLength(uint32) uint32 + func (c *FundingLocked) MsgType() MessageType + type FundingSigned struct + ChanID ChannelID + CommitSig Sig + func (f *FundingSigned) Decode(r io.Reader, pver uint32) error + func (f *FundingSigned) Encode(w io.Writer, pver uint32) error + func (f *FundingSigned) MaxPayloadLength(uint32) uint32 + func (f *FundingSigned) MsgType() MessageType + type GossipTimestampRange struct + ChainHash chainhash.Hash + FirstTimestamp uint32 + TimestampRange uint32 + func NewGossipTimestampRange() *GossipTimestampRange + func (g *GossipTimestampRange) Decode(r io.Reader, pver uint32) error + func (g *GossipTimestampRange) Encode(w io.Writer, pver uint32) error + func (g *GossipTimestampRange) MaxPayloadLength(uint32) uint32 + func (g *GossipTimestampRange) MsgType() MessageType + type Init struct + GlobalFeatures *RawFeatureVector + LocalFeatures *RawFeatureVector + func NewInitMessage(gf *RawFeatureVector, lf *RawFeatureVector) *Init + 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 + func (t MessageType) String() string + type MilliSatoshi uint64 + func NewMSatFromSatoshis(sat btcutil.Amount) MilliSatoshi + func (m MilliSatoshi) String() string + func (m MilliSatoshi) ToBTC() float64 + func (m MilliSatoshi) ToSatoshis() btcutil.Amount + type NetAddress struct + Address net.Addr + ChainNet wire.BitcoinNet + IdentityKey *btcec.PublicKey + func (n *NetAddress) Network() string + func (n *NetAddress) String() string + type NodeAlias [32]byte + func NewNodeAlias(s string) (NodeAlias, error) + func (n NodeAlias) String() string + type NodeAnnouncement struct + Addresses []net.Addr + Alias NodeAlias + ExtraOpaqueData []byte + Features *RawFeatureVector + NodeID [33]byte + RGBColor color.RGBA + Signature Sig + Timestamp uint32 + func (a *NodeAnnouncement) DataToSign() ([]byte, error) + func (a *NodeAnnouncement) Decode(r io.Reader, pver uint32) error + func (a *NodeAnnouncement) Encode(w io.Writer, pver uint32) error + func (a *NodeAnnouncement) MaxPayloadLength(pver uint32) uint32 + func (a *NodeAnnouncement) MsgType() MessageType + type OpaqueReason []byte + type OpenChannel struct + ChainHash chainhash.Hash + ChannelFlags FundingFlag + ChannelReserve btcutil.Amount + CsvDelay uint16 + DelayedPaymentPoint *btcec.PublicKey + DustLimit btcutil.Amount + FeePerKiloWeight uint32 + FirstCommitmentPoint *btcec.PublicKey + FundingAmount btcutil.Amount + FundingKey *btcec.PublicKey + HtlcMinimum MilliSatoshi + HtlcPoint *btcec.PublicKey + MaxAcceptedHTLCs uint16 + MaxValueInFlight MilliSatoshi + PaymentPoint *btcec.PublicKey + PendingChannelID [32]byte + PushAmount MilliSatoshi + RevocationPoint *btcec.PublicKey + func (o *OpenChannel) Decode(r io.Reader, pver uint32) error + func (o *OpenChannel) Encode(w io.Writer, pver uint32) error + func (o *OpenChannel) MaxPayloadLength(uint32) uint32 + func (o *OpenChannel) MsgType() MessageType + type Ping struct + NumPongBytes uint16 + PaddingBytes PingPayload + func NewPing(numBytes uint16) *Ping + func (p *Ping) Decode(r io.Reader, pver uint32) error + func (p *Ping) Encode(w io.Writer, pver uint32) error + func (p *Ping) MsgType() MessageType + func (p Ping) MaxPayloadLength(uint32) uint32 + type PingPayload []byte + type PkScript []byte + type Pong struct + PongBytes PongPayload + func NewPong(pongBytes []byte) *Pong + func (p *Pong) Decode(r io.Reader, pver uint32) error + func (p *Pong) Encode(w io.Writer, pver uint32) error + func (p *Pong) MaxPayloadLength(uint32) uint32 + func (p *Pong) MsgType() MessageType + type PongPayload []byte + type QueryChannelRange struct + ChainHash chainhash.Hash + FirstBlockHeight uint32 + NumBlocks uint32 + func NewQueryChannelRange() *QueryChannelRange + func (q *QueryChannelRange) Decode(r io.Reader, pver uint32) error + func (q *QueryChannelRange) Encode(w io.Writer, pver uint32) error + func (q *QueryChannelRange) MaxPayloadLength(uint32) uint32 + func (q *QueryChannelRange) MsgType() MessageType + type QueryShortChanIDs struct + ChainHash chainhash.Hash + EncodingType ShortChanIDEncoding + ShortChanIDs []ShortChannelID + func NewQueryShortChanIDs(h chainhash.Hash, e ShortChanIDEncoding, s []ShortChannelID) *QueryShortChanIDs + func (q *QueryShortChanIDs) Decode(r io.Reader, pver uint32) error + func (q *QueryShortChanIDs) Encode(w io.Writer, pver uint32) error + func (q *QueryShortChanIDs) MaxPayloadLength(uint32) uint32 + func (q *QueryShortChanIDs) MsgType() MessageType + type RawFeatureVector struct + func NewRawFeatureVector(bits ...FeatureBit) *RawFeatureVector + func (fv *RawFeatureVector) Decode(r io.Reader) error + func (fv *RawFeatureVector) Encode(w io.Writer) error + func (fv *RawFeatureVector) IsSet(feature FeatureBit) bool + func (fv *RawFeatureVector) SerializeSize() int + func (fv *RawFeatureVector) Set(feature FeatureBit) + func (fv *RawFeatureVector) Unset(feature FeatureBit) + type ReplyChannelRange struct + Complete uint8 + EncodingType ShortChanIDEncoding + ShortChanIDs []ShortChannelID + func NewReplyChannelRange() *ReplyChannelRange + func (c *ReplyChannelRange) Decode(r io.Reader, pver uint32) error + func (c *ReplyChannelRange) Encode(w io.Writer, pver uint32) error + func (c *ReplyChannelRange) MaxPayloadLength(uint32) uint32 + func (c *ReplyChannelRange) MsgType() MessageType + type ReplyShortChanIDsEnd struct + ChainHash chainhash.Hash + Complete uint8 + func NewReplyShortChanIDsEnd() *ReplyShortChanIDsEnd + func (c *ReplyShortChanIDsEnd) Decode(r io.Reader, pver uint32) error + func (c *ReplyShortChanIDsEnd) Encode(w io.Writer, pver uint32) error + func (c *ReplyShortChanIDsEnd) MaxPayloadLength(uint32) uint32 + func (c *ReplyShortChanIDsEnd) MsgType() MessageType + type RevokeAndAck struct + ChanID ChannelID + NextRevocationKey *btcec.PublicKey + Revocation [32]byte + func NewRevokeAndAck() *RevokeAndAck + func (c *RevokeAndAck) Decode(r io.Reader, pver uint32) error + func (c *RevokeAndAck) Encode(w io.Writer, pver uint32) error + func (c *RevokeAndAck) MaxPayloadLength(uint32) uint32 + func (c *RevokeAndAck) MsgType() MessageType + type Serializable interface + Decode func(io.Reader, uint32) error + Encode func(io.Writer, uint32) error + type ShortChanIDEncoding uint8 + const EncodingSortedPlain + const EncodingSortedZlib + type ShortChannelID struct + BlockHeight uint32 + TxIndex uint32 + TxPosition uint16 + func NewShortChanIDFromInt(chanID uint64) ShortChannelID + func (c ShortChannelID) String() string + func (c ShortChannelID) ToUint64() uint64 + type Shutdown struct + Address DeliveryAddress + ChannelID ChannelID + func NewShutdown(cid ChannelID, addr DeliveryAddress) *Shutdown + func (s *Shutdown) Decode(r io.Reader, pver uint32) error + func (s *Shutdown) Encode(w io.Writer, pver uint32) error + func (s *Shutdown) MaxPayloadLength(pver uint32) uint32 + func (s *Shutdown) MsgType() MessageType + type Sig [64]byte + func NewSigFromRawSignature(sig []byte) (Sig, error) + func NewSigFromSignature(e *btcec.Signature) (Sig, error) + func (b *Sig) ToSignature() (*btcec.Signature, error) + func (b *Sig) ToSignatureBytes() []byte + type UnknownMessage struct + func (u *UnknownMessage) Error() string + type UpdateAddHTLC struct + Amount MilliSatoshi + ChanID ChannelID + Expiry uint32 + ID uint64 + OnionBlob [OnionPacketSize]byte + PaymentHash [32]byte + func NewUpdateAddHTLC() *UpdateAddHTLC + func (c *UpdateAddHTLC) Decode(r io.Reader, pver uint32) error + func (c *UpdateAddHTLC) Encode(w io.Writer, pver uint32) error + func (c *UpdateAddHTLC) MaxPayloadLength(uint32) uint32 + func (c *UpdateAddHTLC) MsgType() MessageType + type UpdateFailHTLC struct + ChanID ChannelID + ID uint64 + Reason OpaqueReason + func (c *UpdateFailHTLC) Decode(r io.Reader, pver uint32) error + func (c *UpdateFailHTLC) Encode(w io.Writer, pver uint32) error + func (c *UpdateFailHTLC) MaxPayloadLength(uint32) uint32 + func (c *UpdateFailHTLC) MsgType() MessageType + type UpdateFailMalformedHTLC struct + ChanID ChannelID + FailureCode FailCode + ID uint64 + ShaOnionBlob [sha256.Size]byte + func (c *UpdateFailMalformedHTLC) Decode(r io.Reader, pver uint32) error + func (c *UpdateFailMalformedHTLC) Encode(w io.Writer, pver uint32) error + func (c *UpdateFailMalformedHTLC) MaxPayloadLength(uint32) uint32 + func (c *UpdateFailMalformedHTLC) MsgType() MessageType + type UpdateFee struct + ChanID ChannelID + FeePerKw uint32 + func NewUpdateFee(chanID ChannelID, feePerKw uint32) *UpdateFee + func (c *UpdateFee) Decode(r io.Reader, pver uint32) error + func (c *UpdateFee) Encode(w io.Writer, pver uint32) error + func (c *UpdateFee) MaxPayloadLength(uint32) uint32 + func (c *UpdateFee) MsgType() MessageType + type UpdateFulfillHTLC struct + ChanID ChannelID + ID uint64 + PaymentPreimage [32]byte + func NewUpdateFulfillHTLC(chanID ChannelID, id uint64, preimage [32]byte) *UpdateFulfillHTLC + func (c *UpdateFulfillHTLC) Decode(r io.Reader, pver uint32) error + func (c *UpdateFulfillHTLC) Encode(w io.Writer, pver uint32) error + func (c *UpdateFulfillHTLC) MaxPayloadLength(uint32) uint32 + func (c *UpdateFulfillHTLC) MsgType() MessageType