[−][src]Struct elements::issuance::AssetId
An issued asset ID.
Implementations
impl AssetId
[src]
pub fn from_inner(midstate: Midstate) -> AssetId
[src]
Create an AssetId from its inner type.
pub fn into_inner(self) -> Midstate
[src]
Convert the AssetId into its inner type.
pub fn from_slice(sl: &[u8]) -> Result<AssetId, Error>
[src]
Copies a byte slice into an AssetId object
pub fn generate_asset_entropy(
prevout: OutPoint,
contract_hash: ContractHash
) -> Midstate
[src]
prevout: OutPoint,
contract_hash: ContractHash
) -> Midstate
Generate the asset entropy from the issuance prevout and the contract hash.
pub fn from_entropy(entropy: Midstate) -> AssetId
[src]
Calculate the asset ID from the asset entropy.
pub fn reissuance_token_from_entropy(
entropy: Midstate,
confidential: bool
) -> AssetId
[src]
entropy: Midstate,
confidential: bool
) -> AssetId
Calculate the reissuance token asset ID from the asset entropy.
Trait Implementations
impl Clone for AssetId
[src]
impl Copy for AssetId
[src]
impl Debug for AssetId
[src]
impl Decodable for AssetId
[src]
pub fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
[src]
impl Default for AssetId
[src]
impl Display for AssetId
[src]
impl Encodable for AssetId
[src]
impl Eq for AssetId
[src]
impl FromHex for AssetId
[src]
pub fn from_byte_iter<I>(iter: I) -> Result<Self, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
[src]
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
pub fn from_hex(s: &str) -> Result<Self, Error>
[src]
impl FromStr for AssetId
[src]
type Err = Error
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for AssetId
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl LowerHex for AssetId
[src]
impl Ord for AssetId
[src]
pub fn cmp(&self, other: &AssetId) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<AssetId> for AssetId
[src]
impl PartialOrd<AssetId> for AssetId
[src]
pub fn partial_cmp(&self, other: &AssetId) -> Option<Ordering>
[src]
pub fn lt(&self, other: &AssetId) -> bool
[src]
pub fn le(&self, other: &AssetId) -> bool
[src]
pub fn gt(&self, other: &AssetId) -> bool
[src]
pub fn ge(&self, other: &AssetId) -> bool
[src]
impl StructuralEq for AssetId
[src]
impl StructuralPartialEq for AssetId
[src]
Auto Trait Implementations
impl RefUnwindSafe for AssetId
[src]
impl Send for AssetId
[src]
impl Sync for AssetId
[src]
impl Unpin for AssetId
[src]
impl UnwindSafe for AssetId
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToHex for T where
T: LowerHex,
[src]
T: LowerHex,
impl<T> ToHex for T where
T: LowerHex,
[src]
T: LowerHex,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,