Skip to main content

Module protocol

Module protocol 

Source
Expand description

Layer 2: Protocol message types and supporting types.

Contains gossip protocol types (ChannelAnnouncement, ChannelUpdate, NodeAnnouncement, BroadcastMessage) and their supporting types (EcdsaSignature, AnnouncedNodeName, FeatureVector, SchnorrSignature).

Re-exports§

pub use feature_bits::*;

Modules§

feature_bits
Feature bits and methods for the Fiber protocol. Pair bits: a feature can be introduced as optional (odd bits) and later upgraded to be compulsory (even bits).

Structs§

AnnouncedNodeName
A node’s announced name (up to 32 bytes, UTF-8 encoded). If the length is less than 32 bytes, it will be padded with 0. If the length is more than 32 bytes, it should be truncated.
ChannelAnnouncement
Announcement of a new channel in the network.
ChannelUpdate
Update to an existing channel’s routing parameters.
Cursor
A cursor for paginating broadcast messages.
EcdsaSignature
A wrapper around secp256k1 ECDSA signature with serde and molecule support.
FeatureVector
A compact bit-vector representing protocol feature flags.
NodeAnnouncement
Announcement of a node’s presence and capabilities.
SchnorrSignature
A wrapper around secp256k1 Schnorr signature with serde and molecule support.

Enums§

BroadcastMessage
A broadcast message in the gossip protocol.
BroadcastMessageID
The ID of a broadcast message.

Constants§

CURSOR_SIZE
The size of a serialized cursor in bytes.

Type Aliases§

FeatureBit
Feature bit type alias.