[][src]Enum lnpbp::rgb::contract::data::Revealed

#[non_exhaustive]pub enum Revealed {
    U8(u8),
    U16(u16),
    U32(u32),
    U64(u64),
    I8(i8),
    I16(i16),
    I32(i32),
    I64(i64),
    F32(f32),
    F64(f64),
    Bytes(Vec<u8>),
    String(String),
    Sha256(Hash),
    Sha512(Hash),
    Bitcoin160(Hash),
    Bitcoin256(Hash),
    Secp256k1Pubkey(PublicKey),
    Curve25519Pubkey(PublicKey),
    Secp256k1ECDSASignature(Signature),
    Ed25519Signature(Signature),
    TxOutPoint(OutPoint),
    Tx(Transaction),
    Psbt(PartiallySignedTransaction),
}

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
U8(u8)
U16(u16)
U32(u32)
U64(u64)
I8(i8)
I16(i16)
I32(i32)
I64(i64)
F32(f32)
F64(f64)
Bytes(Vec<u8>)
String(String)
Sha256(Hash)

Single-path RIPEMD-160 is not secure and should not be used; see https://eprint.iacr.org/2004/199.pdf

Sha512(Hash)
Bitcoin160(Hash)
Bitcoin256(Hash)
Secp256k1Pubkey(PublicKey)
Curve25519Pubkey(PublicKey)
Secp256k1ECDSASignature(Signature)
Ed25519Signature(Signature)
TxOutPoint(OutPoint)

Implementations

impl Revealed[src]

pub fn u8(&self) -> Option<u8>[src]

pub fn u16(&self) -> Option<u16>[src]

pub fn u32(&self) -> Option<u32>[src]

pub fn u64(&self) -> Option<u64>[src]

pub fn i8(&self) -> Option<i8>[src]

pub fn i16(&self) -> Option<i16>[src]

pub fn i32(&self) -> Option<i32>[src]

pub fn i64(&self) -> Option<i64>[src]

pub fn f32(&self) -> Option<f32>[src]

pub fn f64(&self) -> Option<f64>[src]

pub fn bytes(&self) -> Option<Vec<u8>>[src]

pub fn string(&self) -> Option<String>[src]

Trait Implementations

impl AsAny for Revealed[src]

impl Clone for Revealed[src]

impl CommitEncodeWithStrategy for Revealed[src]

impl Conceal for Revealed[src]

impl Debug for Revealed[src]

impl Display for Revealed[src]

impl Eq for Revealed[src]

impl Ord for Revealed[src]

impl PartialEq<Revealed> for Revealed[src]

impl PartialOrd<Revealed> for Revealed[src]

impl RevealedState for Revealed[src]

impl StrictDecode for Revealed[src]

type Error = Error

Implementation-dependent error type

impl StrictEncode for Revealed[src]

type Error = Error

Implementation-dependent error type

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>,