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::Writeabletrait.
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::Writeabletrait for a struct available in this crate. - impl_
dlc_ writeable_ enum - Implements the
lightning::util::ser::Writeabletrait for an enum. - impl_
dlc_ writeable_ enum_ as_ tlv - Implements the
lightning::util::ser::Writeabletrait for an enum as a TLV. - impl_
dlc_ writeable_ external - Implements the
lightning::util::ser::Writeabletrait for a struct external to this crate. - impl_
dlc_ writeable_ external_ enum - Implements the
lightning::util::ser::Writeabletrait 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.
- Disjoint
Negotiation Fields - Negotiation fields for contract based on multiple events.
- 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.
Constants§
- ACCEPT_
CHANNEL_ TYPE - The type prefix for an [
$type_name] message. - ACCEPT_
TYPE - The type prefix for an [
$type_name] message. - COLLABORATIVE_
CLOSE_ OFFER_ TYPE - The type prefix for an [
$type_name] message. - OFFER_
CHANNEL_ TYPE - The type prefix for an [
$type_name] message. - OFFER_
TYPE - The type prefix for an [
$type_name] message. - REJECT
- The type prefix for an [
$type_name] message. - RENEW_
CHANNEL_ ACCEPT_ TYPE - The type prefix for an [
$type_name] message. - RENEW_
CHANNEL_ CONFIRM_ TYPE - The type prefix for an [
$type_name] message. - RENEW_
CHANNEL_ FINALIZE_ TYPE - The type prefix for an [
$type_name] message. - RENEW_
CHANNEL_ OFFER_ TYPE - The type prefix for an [
$type_name] message. - RENEW_
CHANNEL_ REVOKE_ TYPE - The type prefix for an [
$type_name] message. - SETTLE_
CHANNEL_ ACCEPT_ TYPE - The type prefix for an [
$type_name] message. - SETTLE_
CHANNEL_ CONFIRM_ TYPE - The type prefix for an [
$type_name] message. - SETTLE_
CHANNEL_ FINALIZE_ TYPE - The type prefix for an [
$type_name] message. - SETTLE_
CHANNEL_ OFFER_ TYPE - The type prefix for an [
$type_name] message. - SIGN_
CHANNEL_ TYPE - The type prefix for an [
$type_name] message. - SIGN_
TYPE - The type prefix for an [
$type_name] message.