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§
- Announced
Node Name - 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.
- Channel
Announcement - Announcement of a new channel in the network.
- Channel
Update - Update to an existing channel’s routing parameters.
- Cursor
- A cursor for paginating broadcast messages.
- Ecdsa
Signature - A wrapper around secp256k1 ECDSA signature with serde and molecule support.
- Feature
Vector - A compact bit-vector representing protocol feature flags.
- Node
Announcement - Announcement of a node’s presence and capabilities.
- Schnorr
Signature - A wrapper around secp256k1 Schnorr signature with serde and molecule support.
Enums§
- Broadcast
Message - A broadcast message in the gossip protocol.
- Broadcast
MessageID - The ID of a broadcast message.
Constants§
- CURSOR_
SIZE - The size of a serialized cursor in bytes.
Type Aliases§
- Feature
Bit - Feature bit type alias.