pub enum ScriptPubKeyKind {
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 ScriptPubKeyKind
impl Clone for ScriptPubKeyKind
Source§fn clone(&self) -> ScriptPubKeyKind
fn clone(&self) -> ScriptPubKeyKind
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 ScriptPubKeyKind
impl Debug for ScriptPubKeyKind
Source§impl Decodable for ScriptPubKeyKind
impl Decodable for ScriptPubKeyKind
Source§impl Encodable for ScriptPubKeyKind
impl Encodable for ScriptPubKeyKind
Source§impl PartialEq for ScriptPubKeyKind
impl PartialEq for ScriptPubKeyKind
impl Eq for ScriptPubKeyKind
impl StructuralPartialEq for ScriptPubKeyKind
Auto Trait Implementations§
impl Freeze for ScriptPubKeyKind
impl RefUnwindSafe for ScriptPubKeyKind
impl Send for ScriptPubKeyKind
impl Sync for ScriptPubKeyKind
impl Unpin for ScriptPubKeyKind
impl UnwindSafe for ScriptPubKeyKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more