pub struct SignableInput<'a> { /* private fields */ }
Expand description
A transparent input that is signable because we know its value and script_pubkey
.
Implementations§
Source§impl<'a> SignableInput<'a>
impl<'a> SignableInput<'a>
pub fn hash_type(&self) -> &SighashType
pub fn index(&self) -> &usize
pub fn script_code(&self) -> &&'a Script
pub fn script_pubkey(&self) -> &&'a Script
pub fn value(&self) -> &Zatoshis
Source§impl<'a> SignableInput<'a>
impl<'a> SignableInput<'a>
Sourcepub fn from_parts(
hash_type: SighashType,
index: usize,
script_code: &'a Script,
script_pubkey: &'a Script,
value: Zatoshis,
) -> Self
pub fn from_parts( hash_type: SighashType, index: usize, script_code: &'a Script, script_pubkey: &'a Script, value: Zatoshis, ) -> Self
Constructs a signable input from its parts.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SignableInput<'a>
impl<'a> RefUnwindSafe for SignableInput<'a>
impl<'a> Send for SignableInput<'a>
impl<'a> Sync for SignableInput<'a>
impl<'a> Unpin for SignableInput<'a>
impl<'a> UnwindSafe for SignableInput<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more