Expand description
§This module contains static functions to update the state of a DLC.
Functions§
- accept_
contract - Creates an
AcceptedContract
and produces the accepting party’s cet adaptor signatures. - complete_
cooperative_ close - Verifies and completes a cooperative close transaction using the counter party’s signature.
- create_
cooperative_ close - Creates a cooperative close transaction and signs it with the local party’s key.
- get_
signed_ cet - Signs and return the CET that can be used to close the given contract.
- get_
signed_ refund - Signs and return the refund transaction to refund the contract.
- offer_
contract - Creates an
OfferedContract
andOfferDlc
message from the provided contract and oracle information. - verify_
accepted_ and_ sign_ contract - Verifies the information of the accepting party
Accept
message, creates aSignedContract
, and generates the offering party CET adaptor signatures. - verify_
signed_ contract - Verifies the information from the offer party
Sign
message, creates the accepting party’sSignedContract
and returns it along with the signed fund transaction.