Enum dubp_wallet::prelude::WalletConditionV10[][src]

pub enum WalletConditionV10 {
    Sig(PublicKey),
    Xhx(Hash),
    Cltv(u64),
    Csv(u64),
}

Wrap wallet condition (= one condition in wallet script)

Variants

Sig(PublicKey)

The consumption of funds will require a valid signature of the specified key

Xhx(Hash)

The consumption of funds will require to provide a code with the hash indicated

Cltv(u64)

Funds may not be consumed until the blockchain reaches the timestamp indicated.

Csv(u64)

Funds may not be consumed before the duration indicated, starting from the timestamp of the block where the transaction is written.

Trait Implementations

impl Clone for WalletConditionV10[src]

impl Copy for WalletConditionV10[src]

impl Debug for WalletConditionV10[src]

impl<'de> Deserialize<'de> for WalletConditionV10[src]

impl Eq for WalletConditionV10[src]

impl Hash for WalletConditionV10[src]

impl PartialEq<WalletConditionV10> for WalletConditionV10[src]

impl Serialize for WalletConditionV10[src]

impl StructuralEq for WalletConditionV10[src]

impl StructuralPartialEq for WalletConditionV10[src]

impl ToString for WalletConditionV10[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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, 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.