[−][src]Struct bitcoin_cash::TxPreimage
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: u32
Implementations
impl TxPreimage
[src]
pub fn build_preimages(tx: &impl ToPreimages) -> Vec<Vec<TxPreimage>>
[src]
pub fn size_with_script(script_code: &Script) -> usize
[src]
pub fn empty_with_script(script_code: &Script) -> TxPreimage
[src]
pub fn to_byte_array(&self) -> ByteArray
[src]
Trait Implementations
impl BitcoinDataType for TxPreimage
[src]
type Type = BitcoinByteArray
fn to_data(&self) -> Self::Type
[src]
fn to_pushop(&self) -> Op
[src]
fn to_data_type(&self) -> DataType
[src]
impl Clone for TxPreimage
[src]
fn clone(&self) -> TxPreimage
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TxPreimage
[src]
impl Default for TxPreimage
[src]
fn default() -> TxPreimage
[src]
Auto Trait Implementations
impl RefUnwindSafe for TxPreimage
impl Send for TxPreimage
impl Sync for TxPreimage
impl Unpin for TxPreimage
impl UnwindSafe for TxPreimage
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,