[][src]Enum lnpbp::bp::scripts::script_pubkey::ScriptPubkeyFormat

pub enum ScriptPubkeyFormat {
    KeyChecksig,
    KeyHash,
    ScriptHash,
    Witness,
    OpReturn,
    Custom,
}

Variants

KeyChecksig

Initial standard used by Bitcoin Core (also codenamed "P2PK") that uses uncompressed public key serialization followed with OP_CHECKSIG code

KeyHash

Script pubkey serialization according to widely accepted standard

ScriptHash

Script pubkey serialization according to BIP-16

Witness

Segwit script pubkey serialization according to BIP-141 https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#Witness_program

OpReturn

Outputs containing OP_RETURN serialized according to Bitcoin Core-defined rules

Custom

Custom (i.e. non-standard) output with arbitrary script

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