pub struct FundingInput {
pub input_serial_id: u64,
pub prev_tx: Vec<u8>,
pub prev_tx_vout: u32,
pub sequence: u32,
pub max_witness_len: u16,
pub redeem_script: ScriptBuf,
pub dlc_input: Option<DlcInput>,
}
Expand description
Contains information about a specific input to be used in a funding transaction, as well as its corresponding on-chain UTXO.
Fields§
§input_serial_id: u64
Serial id used for input ordering in the funding transaction.
prev_tx: Vec<u8>
The previous transaction used by the associated input in serialized format.
prev_tx_vout: u32
The vout of the output used by the associated input.
sequence: u32
The sequence number to use for the input.
max_witness_len: u16
The maximum witness length that can be used to spend the previous UTXO.
redeem_script: ScriptBuf
The redeem script of the previous UTXO.
dlc_input: Option<DlcInput>
The optional sub-type of including a DLC input.
Trait Implementations§
Source§impl Clone for FundingInput
impl Clone for FundingInput
Source§fn clone(&self) -> FundingInput
fn clone(&self) -> FundingInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FundingInput
impl Debug for FundingInput
Source§impl From<&FundingInput> for DlcInputInfo
impl From<&FundingInput> for DlcInputInfo
Source§fn from(funding_input: &FundingInput) -> Self
fn from(funding_input: &FundingInput) -> Self
Converts to this type from the input type.
Source§impl From<&FundingInput> for TxInputInfo
impl From<&FundingInput> for TxInputInfo
Source§fn from(funding_input: &FundingInput) -> TxInputInfo
fn from(funding_input: &FundingInput) -> TxInputInfo
Converts to this type from the input type.
Source§impl PartialEq for FundingInput
impl PartialEq for FundingInput
Source§impl Readable for FundingInput
impl Readable for FundingInput
Source§impl Writeable for FundingInput
impl Writeable for FundingInput
impl Eq for FundingInput
impl StructuralPartialEq for FundingInput
Auto Trait Implementations§
impl Freeze for FundingInput
impl RefUnwindSafe for FundingInput
impl Send for FundingInput
impl Sync for FundingInput
impl Unpin for FundingInput
impl UnwindSafe for FundingInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more