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§
- Cached
Contract Signer Provider  - A ContractSignerProvider that caches the signers
 - Simple
Signer  - Simple sample implementation of 
ContractSigner. - System
Time Provider  - Provide current time through 
SystemTime. - Utxo
 - Represents a UTXO.
 
Traits§
- Blockchain
 - Blockchain trait provides access to the bitcoin blockchain.
 - Contract
Signer  - Provides signing related functionalities.
 - Contract
Signer Provider  - Derives a 
ContractSignerfrom aContractSignerProviderand acontract_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§
- Channel
Id  - Type alias for a channel id.
 - Contract
Id  - Type alias for a contract id.
 - KeysId
 - Type alias for a keys id.