Enum revault_tx::error::Error
source · [−]pub enum Error {
ScriptCreation(ScriptCreationError),
TxoutCreation(TxoutCreationError),
TransactionCreation(TransactionCreationError),
InputSatisfaction(InputSatisfactionError),
TransactionFinalisation(String),
TransactionVerification(LibConsensusError),
TransactionSerialisation(TransactionSerialisationError),
}
Expand description
An error specific to the management of Revault transactions and scripts.
Variants
ScriptCreation(ScriptCreationError)
Error when creating a Revault Bitcoin Script
TxoutCreation(TxoutCreationError)
Error when creating a Revault txout
TransactionCreation(TransactionCreationError)
The transaction creation failed.
InputSatisfaction(InputSatisfactionError)
Satisfaction (PSBT signer role) of a Revault transaction input failed.
TransactionFinalisation(String)
Completion (PSBT finalizer role) of the Revault transaction failed.
TransactionVerification(LibConsensusError)
The verification of the PSBT input against libbitcoinconsensus failed.
TransactionSerialisation(TransactionSerialisationError)
Error when working with serialized Revault transactions
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<Error> for Error
impl From<Error> for Error
sourcefn from(e: LibConsensusError) -> Self
fn from(e: LibConsensusError) -> Self
Converts to this type from the input type.
sourceimpl From<InputSatisfactionError> for Error
impl From<InputSatisfactionError> for Error
sourcefn from(e: InputSatisfactionError) -> Self
fn from(e: InputSatisfactionError) -> Self
Converts to this type from the input type.
sourceimpl From<ScriptCreationError> for Error
impl From<ScriptCreationError> for Error
sourcefn from(e: ScriptCreationError) -> Self
fn from(e: ScriptCreationError) -> Self
Converts to this type from the input type.
sourceimpl From<TransactionCreationError> for Error
impl From<TransactionCreationError> for Error
sourcefn from(e: TransactionCreationError) -> Self
fn from(e: TransactionCreationError) -> Self
Converts to this type from the input type.
sourceimpl From<TransactionSerialisationError> for Error
impl From<TransactionSerialisationError> for Error
sourcefn from(e: TransactionSerialisationError) -> Self
fn from(e: TransactionSerialisationError) -> Self
Converts to this type from the input type.
sourceimpl From<TxoutCreationError> for Error
impl From<TxoutCreationError> for Error
sourcefn from(e: TxoutCreationError) -> Self
fn from(e: TxoutCreationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more