pub struct TapCommitment {
pub version: TapCommitmentVersion,
pub root_hash: [u8; 32],
pub root_sum: u64,
}Expand description
Minimal TapCommitment representation derived during verification.
Fields§
§version: TapCommitmentVersionTaproot Asset commitment version.
root_hash: [u8; 32]Root hash of the TapCommitment MS-SMT.
root_sum: u64Root sum of the TapCommitment MS-SMT.
Trait Implementations§
Source§impl Clone for TapCommitment
impl Clone for TapCommitment
Source§fn clone(&self) -> TapCommitment
fn clone(&self) -> TapCommitment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TapCommitment
impl Debug for TapCommitment
Source§impl<'de> Deserialize<'de> for TapCommitment
impl<'de> Deserialize<'de> for TapCommitment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TapCommitment
Source§impl PartialEq for TapCommitment
impl PartialEq for TapCommitment
Source§fn eq(&self, other: &TapCommitment) -> bool
fn eq(&self, other: &TapCommitment) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TapCommitment
impl Serialize for TapCommitment
impl StructuralPartialEq for TapCommitment
Auto Trait Implementations§
impl Freeze for TapCommitment
impl RefUnwindSafe for TapCommitment
impl Send for TapCommitment
impl Sync for TapCommitment
impl Unpin for TapCommitment
impl UnsafeUnpin for TapCommitment
impl UnwindSafe for TapCommitment
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