pub enum SendError {
SighashNotAll {
actual: String,
},
NoOutpoints,
NoEligibleInputs(InputError),
InputKeysSumToInfinity,
Crypto(CryptoError),
}Expand description
Errors from constructing or executing a Silent Payment send operation.
Variants§
SighashNotAll
BIP 352 requires all inputs use SIGHASH_ALL. The transaction contained an input with a different sighash type.
NoOutpoints
Cannot create a Silent Payment with zero inputs.
NoEligibleInputs(InputError)
No eligible inputs found after classification (SEC-03: explicit, never filtered).
InputKeysSumToInfinity
The sum of eligible input public keys equals the point at infinity. This means the keys cancel each other out (e.g., BIP 352 test case 25).
Crypto(CryptoError)
A cryptographic operation failed.
Trait Implementations§
Source§impl Error for SendError
impl Error for SendError
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()
Source§impl From<CryptoError> for SendError
impl From<CryptoError> for SendError
Source§fn from(source: CryptoError) -> Self
fn from(source: CryptoError) -> Self
Converts to this type from the input type.
Source§impl From<InputError> for SendError
impl From<InputError> for SendError
Source§fn from(source: InputError) -> Self
fn from(source: InputError) -> Self
Converts to this type from the input type.
Source§impl From<SpSendError> for SendError
impl From<SpSendError> for SendError
Source§fn from(err: SpSendError) -> Self
fn from(err: SpSendError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SendError
impl RefUnwindSafe for SendError
impl Send for SendError
impl Sync for SendError
impl Unpin for SendError
impl UnsafeUnpin for SendError
impl UnwindSafe for SendError
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