pub struct OfferChannel {Show 22 fields
pub protocol_version: u32,
pub contract_flags: u8,
pub chain_hash: [u8; 32],
pub temporary_contract_id: [u8; 32],
pub temporary_channel_id: [u8; 32],
pub contract_info: ContractInfo,
pub funding_pubkey: PublicKey,
pub revocation_basepoint: PublicKey,
pub publish_basepoint: PublicKey,
pub own_basepoint: PublicKey,
pub first_per_update_point: PublicKey,
pub payout_spk: ScriptBuf,
pub payout_serial_id: u64,
pub offer_collateral: Amount,
pub funding_inputs: Vec<FundingInput>,
pub change_spk: ScriptBuf,
pub change_serial_id: u64,
pub fund_output_serial_id: u64,
pub fee_rate_per_vb: u64,
pub cet_locktime: u32,
pub refund_locktime: u32,
pub cet_nsequence: u32,
}
Expand description
Contains information about a party wishing to enter into a DLC with another party. The contained information is sufficient for any other party to create a set of transactions representing the contract and its terms.
Fields§
§protocol_version: u32
The version of the protocol used by the sending peer.
contract_flags: u8
Indicates options and features selected for the offered contract.
chain_hash: [u8; 32]
The identifier of the chain on which the contract takes place.
temporary_contract_id: [u8; 32]
A random nonce identifying the contract until the fund transaction is created.
temporary_channel_id: [u8; 32]
A random nonce identifying the channel until the fund transaction is created.
contract_info: ContractInfo
Information about the contract established during channel creation.
funding_pubkey: PublicKey
The public key used by the offer party in the 2 of 2 funding output.
revocation_basepoint: PublicKey
The base point that will be used by the offer party for revocation.
publish_basepoint: PublicKey
The base point that will be used by the offer party for generating adaptor signatures to revocable transactions.
own_basepoint: PublicKey
The base point that will be used by the offer party in the 2 of 2 output of buffer transactions.
first_per_update_point: PublicKey
The first per update point of the offer party.
payout_spk: ScriptBuf
Script used by the offer party to receive their payout on channel close.
payout_serial_id: u64
Serial id used to order outputs.
offer_collateral: Amount
The collateral input by the offer party in the channel.
funding_inputs: Vec<FundingInput>
The inputs that the offer party will use to fund the channel.
change_spk: ScriptBuf
The script that the offer party to receive their change.
change_serial_id: u64
Serial id used to order outputs.
fund_output_serial_id: u64
Serial id used to order outputs.
fee_rate_per_vb: u64
The fee rate proposed by the offer party for the channel transactions.
cet_locktime: u32
Lock time for the CETs.
refund_locktime: u32
Lock time for the refund transaction.
cet_nsequence: u32
The nSequence value to use for the CETs.
Implementations§
Trait Implementations§
Source§impl Clone for OfferChannel
impl Clone for OfferChannel
Source§fn clone(&self) -> OfferChannel
fn clone(&self) -> OfferChannel
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more