pub struct AssetGroup {
pub raw_group_key: Vec<u8>,
pub tweaked_group_key: Vec<u8>,
pub asset_witness: Vec<u8>,
pub tapscript_root: Option<Hash>,
}Expand description
Information related to the key group of an asset (if it exists).
Fields§
§raw_group_key: Vec<u8>The raw group key which is a normal public key.
tweaked_group_key: Vec<u8>The tweaked group key, which is derived based on the genesis point and also asset type.
asset_witness: Vec<u8>A witness that authorizes a specific asset to be part of the asset group specified by the above key.
tapscript_root: Option<Hash>The root hash of a tapscript tree, which enables future issuance authorized with a script witness.
Trait Implementations§
Source§impl Clone for AssetGroup
impl Clone for AssetGroup
Source§fn clone(&self) -> AssetGroup
fn clone(&self) -> AssetGroup
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 AssetGroup
impl Debug for AssetGroup
Source§impl<'de> Deserialize<'de> for AssetGroup
impl<'de> Deserialize<'de> for AssetGroup
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 AssetGroup
Source§impl Hash for AssetGroup
impl Hash for AssetGroup
Source§impl PartialEq for AssetGroup
impl PartialEq for AssetGroup
Source§fn eq(&self, other: &AssetGroup) -> bool
fn eq(&self, other: &AssetGroup) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AssetGroup
impl Serialize for AssetGroup
impl StructuralPartialEq for AssetGroup
Auto Trait Implementations§
impl Freeze for AssetGroup
impl RefUnwindSafe for AssetGroup
impl Send for AssetGroup
impl Sync for AssetGroup
impl Unpin for AssetGroup
impl UnsafeUnpin for AssetGroup
impl UnwindSafe for AssetGroup
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