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 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 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§impl PartialOrd for TxOutWitness
impl PartialOrd for TxOutWitness
impl Eq for TxOutWitness
impl StructuralPartialEq for TxOutWitness
Auto Trait Implementations§
impl Freeze for TxOutWitness
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