[][src]Struct elements::issuance::AssetId

pub struct AssetId(_);

An issued asset ID.

Methods

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 generate_asset_entropy(
    prevout: OutPoint,
    contract_hash: Hash
) -> Midstate
[src]

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]

Calculate the reissuance token asset ID from the asset entropy.

Trait Implementations

impl Eq for AssetId[src]

impl Default for AssetId[src]

impl Clone for AssetId[src]

impl PartialOrd<AssetId> for AssetId[src]

impl PartialEq<AssetId> for AssetId[src]

impl Ord for AssetId[src]

impl Copy for AssetId[src]

impl Hash for AssetId[src]

impl Debug for AssetId[src]

impl Display for AssetId[src]

impl LowerHex for AssetId[src]

impl FromHex for AssetId[src]

Auto Trait Implementations

impl Send for AssetId

impl Unpin for AssetId

impl Sync for AssetId

impl UnwindSafe for AssetId

impl RefUnwindSafe for AssetId

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToHex for T where
    T: LowerHex

fn to_hex(&self) -> String

Outputs the hash in hexadecimal form

impl<T> FromHex for T where
    T: Hash,