pub struct AcceptDlc {
pub protocol_version: u32,
pub temporary_contract_id: [u8; 32],
pub accept_collateral: Amount,
pub funding_pubkey: PublicKey,
pub payout_spk: ScriptBuf,
pub payout_serial_id: u64,
pub funding_inputs: Vec<FundingInput>,
pub change_spk: ScriptBuf,
pub change_serial_id: u64,
pub cet_adaptor_signatures: CetAdaptorSignatures,
pub refund_signature: Signature,
pub negotiation_fields: Option<NegotiationFields>,
}
Expand description
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.
Fields§
§protocol_version: u32
The version of the protocol used by the peer.
temporary_contract_id: [u8; 32]
The temporary contract id for the contract.
accept_collateral: Amount
The collateral input by the accept party.
funding_pubkey: PublicKey
The public key of the accept party to be used to lock the collateral.
payout_spk: ScriptBuf
The SPK where the accept party will receive their payout.
payout_serial_id: u64
Serial id to order CET outputs.
funding_inputs: Vec<FundingInput>
Inputs used by the accept party to fund the contract.
change_spk: ScriptBuf
The SPK where the accept party will receive their change.
change_serial_id: u64
Serial id to order funding transaction outputs.
cet_adaptor_signatures: CetAdaptorSignatures
The set of adaptor signatures from the accept party.
refund_signature: Signature
The refund signature of the accept party.
negotiation_fields: Option<NegotiationFields>
The negotiation fields from the accept party.