pub struct TxPreimage {
pub version: i32,
pub hash_prevouts: Sha256d,
pub hash_sequence: Sha256d,
pub outpoint: TxOutpoint,
pub script_code: ByteArray,
pub value: u64,
pub sequence: u32,
pub hash_outputs: Sha256d,
pub lock_time: u32,
pub sig_hash_type: u32,
}Fields§
§version: i32§hash_prevouts: Sha256d§hash_sequence: Sha256d§outpoint: TxOutpoint§script_code: ByteArray§value: u64§sequence: u32§hash_outputs: Sha256d§lock_time: u32§sig_hash_type: u32Implementations§
Source§impl TxPreimage
impl TxPreimage
pub fn build_preimages(tx: &impl ToPreimages) -> Vec<Vec<TxPreimage>>
pub fn size_with_script(script_code: &Script) -> usize
pub fn empty_with_script(script_code: &Script) -> TxPreimage
pub fn to_byte_array(&self) -> ByteArray
Trait Implementations§
Source§impl BitcoinDataType for TxPreimage
impl BitcoinDataType for TxPreimage
Source§impl Clone for TxPreimage
impl Clone for TxPreimage
Source§fn clone(&self) -> TxPreimage
fn clone(&self) -> TxPreimage
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 TxPreimage
impl Debug for TxPreimage
Source§impl Default for TxPreimage
impl Default for TxPreimage
Source§fn default() -> TxPreimage
fn default() -> TxPreimage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TxPreimage
impl RefUnwindSafe for TxPreimage
impl Send for TxPreimage
impl Sync for TxPreimage
impl Unpin for TxPreimage
impl UnwindSafe for TxPreimage
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