pub struct TaprootAssetProof {
pub proof: MssmtProof,
pub version: TapCommitmentVersion,
pub unknown_odd_types: BTreeMap<u64, Vec<u8>>,
}Expand description
Proof used along with an asset commitment leaf to arrive at the root of the TapCommitment MS-SMT.
This corresponds to commitment.TaprootAssetProof in Go.
Fields§
§proof: MssmtProofThe underlying MS-SMT proof.
version: TapCommitmentVersionVersion of the TapCommitment used to create the proof.
unknown_odd_types: BTreeMap<u64, Vec<u8>>Map of unknown odd types encountered during decoding.
Implementations§
Source§impl TaprootAssetProof
impl TaprootAssetProof
pub fn decode_tlv<R: Read>(r: R) -> Result<Self, Error>
Trait Implementations§
Source§impl Clone for TaprootAssetProof
impl Clone for TaprootAssetProof
Source§fn clone(&self) -> TaprootAssetProof
fn clone(&self) -> TaprootAssetProof
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 TaprootAssetProof
impl Debug for TaprootAssetProof
Source§impl<'de> Deserialize<'de> for TaprootAssetProof
impl<'de> Deserialize<'de> for TaprootAssetProof
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 TaprootAssetProof
Source§impl PartialEq for TaprootAssetProof
impl PartialEq for TaprootAssetProof
Source§fn eq(&self, other: &TaprootAssetProof) -> bool
fn eq(&self, other: &TaprootAssetProof) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TaprootAssetProof
impl Serialize for TaprootAssetProof
impl StructuralPartialEq for TaprootAssetProof
Auto Trait Implementations§
impl Freeze for TaprootAssetProof
impl RefUnwindSafe for TaprootAssetProof
impl Send for TaprootAssetProof
impl Sync for TaprootAssetProof
impl Unpin for TaprootAssetProof
impl UnsafeUnpin for TaprootAssetProof
impl UnwindSafe for TaprootAssetProof
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