[−][src]Enum lnpbp::bp::scripts::ScriptPubkeyStructure
Enum defining standard and providing all required data for script pubkey serialization. This enum is not designed for wallets; it covers only BIPs and Bitcoin Core extra-wallet parts.
If you need enum without attached data (like for functions detecting type of the script pubkey) check ScriptPubkeyFormat.
Variants
KeyChecksig(PublicKey)
Initial standard used by Bitcoin Core (also codenamed "P2PK")
that uses uncompressed public key serialization followed with
OP_CHECKSIG
code
KeyHash(PubkeyHash)
Script pubkey serialization according to widely accepted standard
ScriptHash(ScriptHash)
Script pubkey serialization according to BIP-16
Witness(WitnessVersion, WitnessProgram)
Segwit script pubkey serialization according to BIP-141 https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#Witness_program
Outputs containing OP_RETURN serialized according to Bitcoin Core-defined rules as initial OP_RETURN code with any combination of data pushes and numeric constant opcodes (OP_1 to OP_16)
Custom(Script)
Custom (i.e. non-standard) output with arbitrary script
Trait Implementations
impl From<ScriptPubkeyContent> for ScriptPubkeyStructure
[src]
fn from(descr: ScriptPubkeyContent) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScriptPubkeyStructure
impl Send for ScriptPubkeyStructure
impl Sync for ScriptPubkeyStructure
impl Unpin for ScriptPubkeyStructure
impl UnwindSafe for ScriptPubkeyStructure
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> Same<T> for T
type Output = T
Should always be Self
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,