[][src]Struct lnpbp::bp::tagged_hash::Midstate

pub struct Midstate(_);

Helper class for tests and creation of tagged hashes with dynamically- defined tags. Do not use in all other cases; utilize bitcoin::hashes::sha256t type and [bitcoin::sha256t_hash_newtype!] macro instead.

Implementations

impl Midstate[src]

pub fn with(tag: impl AsRef<[u8]>) -> Self[src]

Constructs tagged hash midstate for a given tag data

Trait Implementations

impl AsMut<<Midstate as Wrapper>::Inner> for Midstate[src]

impl AsRef<<Midstate as Wrapper>::Inner> for Midstate[src]

impl Borrow<<Midstate as Wrapper>::Inner> for Midstate[src]

impl BorrowMut<<Midstate as Wrapper>::Inner> for Midstate[src]

impl Clone for Midstate[src]

impl Copy for Midstate[src]

impl Debug for Midstate[src]

impl Default for Midstate[src]

impl Deref for Midstate[src]

type Target = Self::Inner

The resulting type after dereferencing.

impl DerefMut for Midstate[src]

impl Display for Midstate[src]

impl Eq for Midstate[src]

impl From<[u8; 32]> for Midstate[src]

impl Hash for Midstate[src]

impl PartialEq<Midstate> for Midstate[src]

impl StructuralEq for Midstate[src]

impl StructuralPartialEq for Midstate[src]

impl Wrapper for Midstate[src]

type Inner = [u8; 32]

Inner type wrapped by the current newtype

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,