[−][src]Struct elements::PeginData
Parsed data from a transaction input's pegin witness
Fields
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: BlockHash
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: BlockHash
The Bitcoin block that the pegin output appears in; scraped from the transaction inclusion proof
Trait Implementations
impl<'tx> Clone for PeginData<'tx>
[src]
impl<'tx> Copy for PeginData<'tx>
[src]
impl<'tx> Debug for PeginData<'tx>
[src]
impl<'tx> Default for PeginData<'tx>
[src]
impl<'tx> Eq for PeginData<'tx>
[src]
impl<'tx> Hash for PeginData<'tx>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'tx> PartialEq<PeginData<'tx>> for PeginData<'tx>
[src]
impl<'tx> StructuralEq for PeginData<'tx>
[src]
impl<'tx> StructuralPartialEq for PeginData<'tx>
[src]
Auto Trait Implementations
impl<'tx> RefUnwindSafe for PeginData<'tx>
impl<'tx> Send for PeginData<'tx>
impl<'tx> Sync for PeginData<'tx>
impl<'tx> Unpin for PeginData<'tx>
impl<'tx> UnwindSafe for PeginData<'tx>
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,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,