pub struct UtreexoLeafError {
pub leaf: CompactLeafData,
pub txid: Txid,
pub vin: usize,
pub kind: LeafErrorKind,
}Expand description
Error while reconstructing a leaf’s scriptPubKey, returned by process_proof.
This error is triggered if the input lacks the hashed data required by the ScriptPubKeyKind (i.e., the public key for P2PKH, the redeem script for P2SH, or the witness public key and witness script for P2WPKH/P2WSH).
Fields§
§leaf: CompactLeafData§txid: Txid§vin: usize§kind: LeafErrorKindTrait Implementations§
Source§impl Debug for UtreexoLeafError
impl Debug for UtreexoLeafError
Source§impl Display for UtreexoLeafError
impl Display for UtreexoLeafError
Source§impl From<UtreexoLeafError> for BlockchainError
impl From<UtreexoLeafError> for BlockchainError
Source§fn from(e: UtreexoLeafError) -> Self
fn from(e: UtreexoLeafError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UtreexoLeafError
impl RefUnwindSafe for UtreexoLeafError
impl Send for UtreexoLeafError
impl Sync for UtreexoLeafError
impl Unpin for UtreexoLeafError
impl UnwindSafe for UtreexoLeafError
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
§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