Expand description
Data structure and functions related to peer communication.
Modules§
- channel
- Contains messages used for the establishment and update of DLC channels.
- contract_
msgs - Structure containing information about contract details.
- message_
handler - Struct used to help send and receive DLC related messages.
- oracle_
msgs - Structs containing oracle information.
- segmentation
- Module used when working with message segmentation.
- ser_
impls - Set of utility functions to help with serialization.
- ser_
macros - Set of macro to help implementing the
lightning::util::ser::Writeable
trait. - types
- Type definitions and constants for DLC messages
Macros§
- field_
read - Reads a field from a reader.
- field_
write - Writes a field to a writer.
- impl_
dlc_ writeable - Implements the
lightning::util::ser::Writeable
trait for a struct available in this crate. - impl_
dlc_ writeable_ enum - Implements the
lightning::util::ser::Writeable
trait for an enum. - impl_
dlc_ writeable_ enum_ as_ tlv - Implements the
lightning::util::ser::Writeable
trait for an enum as a TLV. - impl_
dlc_ writeable_ external - Implements the
lightning::util::ser::Writeable
trait for a struct external to this crate. - impl_
dlc_ writeable_ external_ enum - Implements the
lightning::util::ser::Writeable
trait for an enum external to this crate.
Structs§
- Accept
Dlc - 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.
- CetAdaptor
Signature - Contains an adaptor signature for a CET input and its associated DLEQ proof.
- CetAdaptor
Signatures - Contains a list of adaptor signature for a number of CET inputs.
- Close
Dlc - Contains information about a party wishing to close a DLC contract.
- Disjoint
Negotiation Fields - Negotiation fields for contract based on multiple events.
- DlcInput
- Contains information about a DLC input to be used in a funding transaction.
- Funding
Input - Contains information about a specific input to be used in a funding transaction, as well as its corresponding on-chain UTXO.
- Funding
Signature - Contains the witness elements to use to make a funding transaction input valid.
- Funding
Signatures - Contains a list of witness elements to satisfy the spending conditions of funding inputs.
- Offer
Dlc - 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.
- SignDlc
- Contains all the required signatures for the DLC transactions from the offering party.
- Single
Negotiation Fields - Negotiation fields for contract based on a single event.
- Witness
Element - Contains serialized data representing a single witness stack element.
Enums§
- Message
- Negotiation
Fields - Fields used to negotiate contract information.
- Wire
Message - Wrapper for DLC related message and segmentation related messages.