Crate ddk_manager

Source
Expand description

§Library providing data structures and functions supporting the execution

and management of DLC.

Modules§

chain_monitor
Implementation of a chain monitor to watch the blockchain for transactions of interest.
channel
Module containing structures and methods for working with DLC channels.
channel_updater
This module contains static functions to update the state of a DLC channel.
contract
Module containing structures and functions related to contracts.
contract_updater
This module contains static functions to update the state of a DLC.
error
#Error
manager
#Manager a component to create and update DLCs.
payout_curve
#PayoutFunction

Structs§

CachedContractSignerProvider
A ContractSignerProvider that caches the signers
SimpleSigner
Simple sample implementation of ContractSigner.
SystemTimeProvider
Provide current time through SystemTime.
Utxo
Represents a UTXO.

Traits§

Blockchain
Blockchain trait provides access to the bitcoin blockchain.
ContractSigner
Provides signing related functionalities.
ContractSignerProvider
Derives a ContractSigner from a ContractSignerProvider and a contract_keys_id.
Oracle
Oracle trait provides access to oracle information.
Storage
Storage trait provides functionalities to store and retrieve DLCs.
Time
Time trait to provide current unix time. Mainly defined to facilitate testing.
Wallet
Wallet trait to provide functionalities related to generating, storing and managing bitcoin addresses and UTXOs.

Type Aliases§

ChannelId
Type alias for a channel id.
ContractId
Type alias for a contract id.
KeysId
Type alias for a keys id.