[][src]Struct elements::PeginData

pub struct PeginData<'tx> {
    pub outpoint: OutPoint,
    pub value: u64,
    pub asset: Asset,
    pub genesis_hash: Hash,
    pub claim_script: &'tx [u8],
    pub tx: &'tx [u8],
    pub merkle_proof: &'tx [u8],
    pub referenced_block: Hash,

Parsed data from a transaction input's pegin witness


outpoint: OutPoint

Reference to the pegin output on the mainchain

value: u64

The value, in satoshis, of the pegin

asset: Asset

Asset type being pegged in

genesis_hash: Hash

Hash of genesis block of originating blockchain

claim_script: &'tx [u8]

The claim script that we should hash to tweak our address. Unparsed to avoid unnecessary allocation and copying. Typical use is simply to feed it raw into a hash function.

tx: &'tx [u8]

Mainchain transaction; not parsed to save time/memory since the parsed transaction is typically not useful without auxillary data (e.g. knowing how to compute pegin addresses for the sidechain).

merkle_proof: &'tx [u8]

Merkle proof of transaction inclusion; also not parsed

referenced_block: Hash

The Bitcoin block that the pegin output appears in; scraped from the transaction inclusion proof

Trait Implementations

impl<'tx> PartialEq<PeginData<'tx>> for PeginData<'tx>[src]

impl<'tx> Copy for PeginData<'tx>[src]

impl<'tx> Eq for PeginData<'tx>[src]

impl<'tx> Default for PeginData<'tx>[src]

impl<'tx> Clone for PeginData<'tx>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'tx> Hash for PeginData<'tx>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher

Feeds a slice of this type into the given [Hasher]. Read more

impl<'tx> Debug for PeginData<'tx>[src]

Auto Trait Implementations

impl<'tx> Send for PeginData<'tx>

impl<'tx> Unpin for PeginData<'tx>

impl<'tx> Sync for PeginData<'tx>

impl<'tx> UnwindSafe for PeginData<'tx>

impl<'tx> RefUnwindSafe for PeginData<'tx>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> Borrow<T> for T where
    T: ?Sized

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