Crate dlc_messages

source ·
Expand description

Data structure and functions related to peer communication.

Modules

Contains messages used for the establishment and update of DLC channels.
Structure containing information about contract details.
Struct used to help send and receive DLC related messages.
Structs containing oracle information.
Module used when working with message segmentation.
Set of utility functions to help with serialization.
Set of macro to help implementing the lightning::util::ser::Writeable trait.

Macros

Reads a field from a reader.
Writes a field to a writer.
Implements the lightning::util::ser::Writeable trait for a struct available in this crate.
Implements the lightning::util::ser::Writeable trait for an enum as a TLV.
Implements the lightning::util::ser::Writeable trait for a struct external to this crate.
Implements the lightning::util::ser::Writeable trait for an enum external to this crate.

Structs

Contains information about a party wishing to accept a DLC offer. The contained information is sufficient for the offering party to re-build the set of transactions representing the contract and its terms, and guarantees the offering party that they can safely provide signatures for their funding input.
Contains an adaptor signature for a CET input and its associated DLEQ proof.
Contains a list of adaptor signature for a number of CET inputs.
Negotiation fields for contract based on multiple events.
Contains information about a specific input to be used in a funding transaction, as well as its corresponding on-chain UTXO.
Contains the witness elements to use to make a funding transaction input valid.
Contains a list of witness elements to satisfy the spending conditions of funding inputs.
Contains information about a party wishing to enter into a DLC with another party. The contained information is sufficient for any other party to create a set of transactions representing the contract and its terms.
Contains all the required signatures for the DLC transactions from the offering party.
Negotiation fields for contract based on a single event.
Contains serialized data representing a single witness stack element.

Enums

Fields used to negotiate contract information.
Wrapper for DLC related message and segmentation related messages.

Constants

The type prefix for an [$type_name] message.
The type prefix for an [$type_name] message.
The type prefix for an [$type_name] message.
The type prefix for an [$type_name] message.
The type prefix for an [$type_name] message.
The type prefix for an [$type_name] message.
The type prefix for an [$type_name] message.
The type prefix for an [$type_name] message.
The type prefix for an [$type_name] message.
The type prefix for an [$type_name] message.
The type prefix for an [$type_name] message.
The type prefix for an [$type_name] message.
The type prefix for an [$type_name] message.
The type prefix for an [$type_name] message.
The type prefix for an [$type_name] message.
The type prefix for an [$type_name] message.