DotNetLightning


DotNetLightning.Serialization.Msgs Namespace

This namespace contains a p2p messages for lightning network.

Type/Module Description

AcceptChannelMsg

accept_channel in bolt02

AnnouncementSignaturesMsg

announcement_signatures in bolt07

ChannelAnnouncementMsg

channel_announcement in bolt07

ChannelReestablishMsg

channel_reestablish in bolt02

ChannelUpdateMsg

channel_update in bolt07

ClosingSignedMsg

closing_signed in bolt02

CommitmentSignedMsg

commitment_signed in bolt02

CommitmentUpdate

Struct used to return valeus from revoke_and_ack messages, cotaining a bunch of commitment transaction updates if they were pending.

DataLossProtect

data_loss_protect in channel_reestablish which exists only when option_data_lock_protect is negotiated see bolt02

DnsHostName

ErrorMsg

FailureMsg

failuremsg in bolt04

FailureMsgData

inner data for failure msg described in bolt04

FundingCreatedMsg

funding_created in bolt02

FundingLockedMsg

funding_locked in bolt02

FundingSignedMsg

funding_signed in bolt02

GossipTimestampFilterMsg

gossip_timestamp_filter in bolt07

IChannelMsg

The marker interface to annotate the type p2p messages for managing the channel itself e.g. opening/closure/update. but not for htlc payment.

IHTLCMsg

The marker interface to annotate the p2p message related to HTLC update.

ILightningMsg

The marker interface to annotate the type for p2p serialization.

ILightningMsgExtension

Extension methods for ILightningMsg

ILightningSerializable

ILightningSerializable<'T>

The type serializable for lightning p2p network. Should throw FormatException when it fails.

ILightningSerializableExtension

Extension methods for ILightningSerializable

InitMsg

init in bolt01

IPv4Or6Data

Pair of Address and port.

IQueryMsg

The marker interface to annotate the p2p message related to querying the information to other nodes.

IRoutingMsg

The marker interface to annotate the p2p message related to routing

ISetupMsg

The marker interface to annotate the type for very basic p2p messaging. e.g. ping/pong, error.

IUpdateMsg

The marker interface to annotate the p2p message related to channel update (including htlc creation/revocation).

LightningMsg

Functions to work with LightningMsg

NetAddress

ip address for Lightning Node's p2p connection.

NetAddrSerializationResult

NodeAnnouncementMsg

node_announcement in bolt07

NodeFailure

OnionErrorPacket

OnionPacket

onion_packet described in bolt04 todo: add methods to parse OnionPayload from HopData field.

OnionV2EndPoint

Pair of Address and port.

OnionV3EndPoint

Onion address v3 contains information more than v2 or normal ipv4/v6 address e.g. Checksum and the version number.

OpenChannelMsg

open_channel in bolt02

OptionalField<'T>

Before TLV gets standardized. Optional fields are defined directly in bolt. This a type annotation to make clear that the field is such an optional type. The actual type is just a standard FSharpOption.

P2PDecodeError

PingMsg

ping in bolt01

PongMsg

pong in bolt01

QueryChannelRangeMsg

query_channel_range in bolt07

QueryShortChannelIdsMsg

query_short_channel_ids in bolt07

ReplyChannelRangeMsg

reply_channel_range in bolt07

ReplyShortChannelIdsEndMsg

reply_short_channel_ids_end in bolt07

RevokeAndACKMsg

revoke_and_ack in bolt02

ShutdownMsg

shutdown in bolt02

UnknownNetAddr

UnknownVersionException

UnsignedChannelAnnouncementMsg

channel_announcement in bolt07 without signatures

UnsignedChannelUpdateMsg

channel_update in bolt07 without signatures

UnsignedNodeAnnouncementMsg

node_announcement in bolt07 without signatures. Features are stored as byte array because node_announcement with invalid or unknown features should not raise exception on deserialization. They can be accessed using Features property

UpdateAddHTLCMsg

update_add_htlc in bolt02

UpdateFailHTLCMsg

update_fail_htlc in bolt02

UpdateFailMalformedHTLCMsg

update_fail_malformed_htlc in bolt02

UpdateFeeMsg

update_fee in bolt02

UpdateFulfillHTLCMsg

update_fulfill_htlc in bolt02

WarningMsg

WhichChannel