Crate ddk_messages

Crate ddk_messages 

Source
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§

AcceptDlc
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.
CetAdaptorSignature
Contains an adaptor signature for a CET input and its associated DLEQ proof.
CetAdaptorSignatures
Contains a list of adaptor signature for a number of CET inputs.
CloseDlc
Contains information about a party wishing to close a DLC contract.
DisjointNegotiationFields
Negotiation fields for contract based on multiple events.
DlcInput
Contains information about a DLC input to be used in a funding transaction.
FundingInput
Contains information about a specific input to be used in a funding transaction, as well as its corresponding on-chain UTXO.
FundingSignature
Contains the witness elements to use to make a funding transaction input valid.
FundingSignatures
Contains a list of witness elements to satisfy the spending conditions of funding inputs.
OfferDlc
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.
SingleNegotiationFields
Negotiation fields for contract based on a single event.
WitnessElement
Contains serialized data representing a single witness stack element.

Enums§

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