pub enum PsbtError {
Show 21 variants
InvalidMagic,
InvalidFormat(String),
MissingField(String),
DuplicateKey,
InvalidKeyType(u8),
InputIndexOutOfBounds(usize),
OutputIndexOutOfBounds(usize),
CannotSign(String),
IncompatiblePsbts,
NotFinalized,
AlreadyFinalized,
InvalidSignature,
UnsupportedVersion(u32),
SerializationError(String),
Base64Error(String),
InvalidPublicKey(String),
InvalidScript(String),
MissingUtxo(usize),
SighashMismatch,
TransactionMismatch,
NoUnsignedTx,
}Expand description
Errors that can occur when working with PSBTs
Variants§
InvalidMagic
Invalid magic bytes (expected 0x70736274ff)
InvalidFormat(String)
Invalid PSBT format
MissingField(String)
Missing required field
DuplicateKey
Duplicate key in map
InvalidKeyType(u8)
Invalid key type
InputIndexOutOfBounds(usize)
Input index out of bounds
OutputIndexOutOfBounds(usize)
Output index out of bounds
CannotSign(String)
Cannot sign input
IncompatiblePsbts
Incompatible PSBTs for combination
NotFinalized
PSBT not finalized
AlreadyFinalized
Already finalized
InvalidSignature
Invalid signature
UnsupportedVersion(u32)
Unsupported PSBT version
SerializationError(String)
Serialization error
Base64Error(String)
Base64 decode error
InvalidPublicKey(String)
Invalid public key
InvalidScript(String)
Invalid script
MissingUtxo(usize)
Missing UTXO information
SighashMismatch
Sighash mismatch
TransactionMismatch
Transaction mismatch
NoUnsignedTx
No unsigned transaction
Trait Implementations§
Source§impl Error for PsbtError
impl Error for PsbtError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Eq for PsbtError
impl StructuralPartialEq for PsbtError
Auto Trait Implementations§
impl Freeze for PsbtError
impl RefUnwindSafe for PsbtError
impl Send for PsbtError
impl Sync for PsbtError
impl Unpin for PsbtError
impl UnwindSafe for PsbtError
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