pub enum ScriptPubkeyType {
Other(Box<[u8]>),
PubKeyHash,
WitnessV0PubKeyHash,
ScriptHash,
WitnessV0ScriptHash,
}
Expand description
A recoverable scriptPubkey type, this avoids copying over data that are already present or can be computed from the transaction itself. An example is a p2pkh, the public key is serialized in the scriptSig, so we can just grab it and hash to obtain the actual scriptPubkey. Since this data is committed in the Utreexo leaf hash, it is still authenticated
Variants§
Other(Box<[u8]>)
An non-specified type, in this case the script is just copied over
PubKeyHash
p2pkh
WitnessV0PubKeyHash
p2wsh
ScriptHash
p2sh
WitnessV0ScriptHash
p2wsh
Trait Implementations§
source§impl Clone for ScriptPubkeyType
impl Clone for ScriptPubkeyType
source§fn clone(&self) -> ScriptPubkeyType
fn clone(&self) -> ScriptPubkeyType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ScriptPubkeyType
impl Debug for ScriptPubkeyType
source§impl Decodable for ScriptPubkeyType
impl Decodable for ScriptPubkeyType
source§impl Encodable for ScriptPubkeyType
impl Encodable for ScriptPubkeyType
source§impl PartialEq<ScriptPubkeyType> for ScriptPubkeyType
impl PartialEq<ScriptPubkeyType> for ScriptPubkeyType
source§fn eq(&self, other: &ScriptPubkeyType) -> bool
fn eq(&self, other: &ScriptPubkeyType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ScriptPubkeyType
impl StructuralEq for ScriptPubkeyType
impl StructuralPartialEq for ScriptPubkeyType
Auto Trait Implementations§
impl RefUnwindSafe for ScriptPubkeyType
impl Send for ScriptPubkeyType
impl Sync for ScriptPubkeyType
impl Unpin for ScriptPubkeyType
impl UnwindSafe for ScriptPubkeyType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more