Struct elements::TxOutWitness
source · pub struct TxOutWitness {
pub surjection_proof: Option<Box<SurjectionProof>>,
pub rangeproof: Option<Box<RangeProof>>,
}
Expand description
Transaction output witness
Fields§
§surjection_proof: Option<Box<SurjectionProof>>
Surjection proof showing that the asset commitment is legitimate
rangeproof: Option<Box<RangeProof>>
Rangeproof showing that the value commitment is legitimate
Implementations§
source§impl TxOutWitness
impl TxOutWitness
sourcepub fn rangeproof_len(&self) -> usize
pub fn rangeproof_len(&self) -> usize
The rangeproof len if is present, otherwise 0
sourcepub fn surjectionproof_len(&self) -> usize
pub fn surjectionproof_len(&self) -> usize
The surjection proof len if is present, otherwise 0
Trait Implementations§
source§impl Clone for TxOutWitness
impl Clone for TxOutWitness
source§fn clone(&self) -> TxOutWitness
fn clone(&self) -> TxOutWitness
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 TxOutWitness
impl Debug for TxOutWitness
source§impl Decodable for TxOutWitness
impl Decodable for TxOutWitness
source§fn consensus_decode<D: Read>(d: D) -> Result<TxOutWitness, Error>
fn consensus_decode<D: Read>(d: D) -> Result<TxOutWitness, Error>
Decode an object with a well-defined format
source§impl Default for TxOutWitness
impl Default for TxOutWitness
source§impl Encodable for TxOutWitness
impl Encodable for TxOutWitness
source§impl Hash for TxOutWitness
impl Hash for TxOutWitness
source§impl Ord for TxOutWitness
impl Ord for TxOutWitness
source§fn cmp(&self, other: &TxOutWitness) -> Ordering
fn cmp(&self, other: &TxOutWitness) -> 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 TxOutWitness
impl PartialEq for TxOutWitness
source§fn eq(&self, other: &TxOutWitness) -> bool
fn eq(&self, other: &TxOutWitness) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TxOutWitness
impl PartialOrd for TxOutWitness
source§fn partial_cmp(&self, other: &TxOutWitness) -> Option<Ordering>
fn partial_cmp(&self, other: &TxOutWitness) -> 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 TxOutWitness
impl StructuralPartialEq for TxOutWitness
Auto Trait Implementations§
impl RefUnwindSafe for TxOutWitness
impl Send for TxOutWitness
impl Sync for TxOutWitness
impl Unpin for TxOutWitness
impl UnwindSafe for TxOutWitness
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