pub struct AssetProof {
pub proof: MssmtProof,
pub version: AssetVersion,
pub tap_key: [u8; 32],
pub unknown_odd_types: BTreeMap<u64, Vec<u8>>,
}Expand description
Proof used along with an asset leaf to arrive at the root of the AssetCommitment MS-SMT.
This corresponds to commitment.AssetProof in Go.
Fields§
§proof: MssmtProofThe underlying MS-SMT proof.
version: AssetVersionMax version of the assets committed.
tap_key: [u8; 32]Common identifier for all assets found within the AssetCommitment. Can be an asset.ID or an asset.GroupKey hash.
unknown_odd_types: BTreeMap<u64, Vec<u8>>Map of unknown odd types encountered during decoding.
Implementations§
Source§impl AssetProof
impl AssetProof
pub fn decode_tlv<R: Read>(r: R) -> Result<Self, Error>
Trait Implementations§
Source§impl Clone for AssetProof
impl Clone for AssetProof
Source§fn clone(&self) -> AssetProof
fn clone(&self) -> AssetProof
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 AssetProof
impl Debug for AssetProof
Source§impl<'de> Deserialize<'de> for AssetProof
impl<'de> Deserialize<'de> for AssetProof
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 AssetProof
Source§impl PartialEq for AssetProof
impl PartialEq for AssetProof
Source§fn eq(&self, other: &AssetProof) -> bool
fn eq(&self, other: &AssetProof) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AssetProof
impl Serialize for AssetProof
impl StructuralPartialEq for AssetProof
Auto Trait Implementations§
impl Freeze for AssetProof
impl RefUnwindSafe for AssetProof
impl Send for AssetProof
impl Sync for AssetProof
impl Unpin for AssetProof
impl UnsafeUnpin for AssetProof
impl UnwindSafe for AssetProof
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