Enum bitcoinconsensus::Error
source · #[repr(C)]pub enum Error {
ERR_SCRIPT,
ERR_TX_INDEX,
ERR_TX_SIZE_MISMATCH,
ERR_TX_DESERIALIZE,
ERR_AMOUNT_REQUIRED,
ERR_INVALID_FLAGS,
ERR_SPENT_OUTPUTS_REQUIRED,
ERR_SPENT_OUTPUTS_MISMATCH,
}
Expand description
Errors returned by libbitcoinconsensus
.
The error variant identifiers mimic those from libbitcoinconsensus
.
Variants§
ERR_SCRIPT
Default value, passed to libbitcoinconsensus
as a return parameter.
ERR_TX_INDEX
An invalid index for txTo
.
ERR_TX_SIZE_MISMATCH
txToLen
did not match with the size of txTo
.
ERR_TX_DESERIALIZE
An error deserializing txTo
.
ERR_AMOUNT_REQUIRED
Input amount is required if WITNESS is used.
ERR_INVALID_FLAGS
Script verification flags
are invalid (i.e. not part of the libconsensus interface).
ERR_SPENT_OUTPUTS_REQUIRED
Verifying Taproot input requires previous outputs.
ERR_SPENT_OUTPUTS_MISMATCH
Taproot outputs don’t match.
Trait Implementations§
source§impl PartialEq<Error> for Error
impl PartialEq<Error> for Error
impl Copy for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
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§
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