Module contract_updater

Module contract_updater 

Source
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 and OfferDlc message from the provided contract and oracle information.
verify_accepted_and_sign_contract
Verifies the information of the accepting party Accept message, creates a SignedContract, and generates the offering party CET adaptor signatures.
verify_signed_contract
Verifies the information from the offer party Sign message, creates the accepting party’s SignedContract and returns it along with the signed fund transaction.