Struct elements::TxInWitness
source · pub struct TxInWitness {
pub amount_rangeproof: Option<Box<RangeProof>>,
pub inflation_keys_rangeproof: Option<Box<RangeProof>>,
pub script_witness: Vec<Vec<u8>>,
pub pegin_witness: Vec<Vec<u8>>,
}
Expand description
Transaction input witness
Fields§
§amount_rangeproof: Option<Box<RangeProof>>
Amount rangeproof
inflation_keys_rangeproof: Option<Box<RangeProof>>
Rangeproof for inflation keys
script_witness: Vec<Vec<u8>>
Traditional script witness
pegin_witness: Vec<Vec<u8>>
Pegin witness, basically the same thing
Implementations§
Trait Implementations§
source§impl Clone for TxInWitness
impl Clone for TxInWitness
source§fn clone(&self) -> TxInWitness
fn clone(&self) -> TxInWitness
Returns a copy 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 TxInWitness
impl Debug for TxInWitness
source§impl Decodable for TxInWitness
impl Decodable for TxInWitness
source§fn consensus_decode<D: Read>(d: D) -> Result<TxInWitness, Error>
fn consensus_decode<D: Read>(d: D) -> Result<TxInWitness, Error>
Decode an object with a well-defined format
source§impl Default for TxInWitness
impl Default for TxInWitness
source§impl Encodable for TxInWitness
impl Encodable for TxInWitness
source§impl Hash for TxInWitness
impl Hash for TxInWitness
source§impl Ord for TxInWitness
impl Ord for TxInWitness
source§fn cmp(&self, other: &TxInWitness) -> Ordering
fn cmp(&self, other: &TxInWitness) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TxInWitness
impl PartialEq for TxInWitness
source§fn eq(&self, other: &TxInWitness) -> bool
fn eq(&self, other: &TxInWitness) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TxInWitness
impl PartialOrd for TxInWitness
source§fn partial_cmp(&self, other: &TxInWitness) -> Option<Ordering>
fn partial_cmp(&self, other: &TxInWitness) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for TxInWitness
impl StructuralPartialEq for TxInWitness
Auto Trait Implementations§
impl RefUnwindSafe for TxInWitness
impl Send for TxInWitness
impl Sync for TxInWitness
impl Unpin for TxInWitness
impl UnwindSafe for TxInWitness
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