pub struct SigningContext<'a> {
pub raw_tx: &'a [u8],
pub input_index: usize,
pub source_satoshis: u64,
pub locking_script: &'a Script,
}Expand description
Context for signing a transaction input.
This provides all the information needed to compute a sighash and produce a signature for a specific input.
Fields§
§raw_tx: &'a [u8]The raw transaction bytes being signed.
input_index: usizeThe index of the input being signed.
source_satoshis: u64The satoshi value of the UTXO being spent.
locking_script: &'a ScriptThe locking script of the UTXO being spent.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for SigningContext<'a>
impl<'a> Clone for SigningContext<'a>
Source§fn clone(&self) -> SigningContext<'a>
fn clone(&self) -> SigningContext<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> !RefUnwindSafe for SigningContext<'a>
impl<'a> !Send for SigningContext<'a>
impl<'a> !Sync for SigningContext<'a>
impl<'a> !UnwindSafe for SigningContext<'a>
impl<'a> Freeze for SigningContext<'a>
impl<'a> Unpin for SigningContext<'a>
impl<'a> UnsafeUnpin for SigningContext<'a>
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