Enum elements::ConfidentialTxOutError
source · pub enum ConfidentialTxOutError {
InvalidAddress,
NoBlindingKeyInAddress,
Upstream(Error),
TxOutError(usize, TxOutError),
ExpectedExplicitAsset,
ExpectedExplicitValue,
}
Expand description
Errors encountered when constructing confidential transaction outputs.
Variants§
InvalidAddress
The script pubkey does not represent a valid address This is not a fundamental limitation, just a limitation of how the code API is structured
NoBlindingKeyInAddress
The address provided does not have a blinding key.
Upstream(Error)
Error originated in secp256k1_zkp
.
TxOutError(usize, TxOutError)
General TxOut errors
ExpectedExplicitAsset
Expected Explicit Asset for blinding
ExpectedExplicitValue
Expected Explicit Value for blinding
Trait Implementations§
source§impl Clone for ConfidentialTxOutError
impl Clone for ConfidentialTxOutError
source§fn clone(&self) -> ConfidentialTxOutError
fn clone(&self) -> ConfidentialTxOutError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConfidentialTxOutError
impl Debug for ConfidentialTxOutError
source§impl Display for ConfidentialTxOutError
impl Display for ConfidentialTxOutError
source§impl Error for ConfidentialTxOutError
impl Error for ConfidentialTxOutError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ConfidentialTxOutError> for BlindError
impl From<ConfidentialTxOutError> for BlindError
source§fn from(from: ConfidentialTxOutError) -> Self
fn from(from: ConfidentialTxOutError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ConfidentialTxOutError
impl From<Error> for ConfidentialTxOutError
source§impl PartialEq for ConfidentialTxOutError
impl PartialEq for ConfidentialTxOutError
source§fn eq(&self, other: &ConfidentialTxOutError) -> bool
fn eq(&self, other: &ConfidentialTxOutError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ConfidentialTxOutError
impl Eq for ConfidentialTxOutError
impl StructuralPartialEq for ConfidentialTxOutError
Auto Trait Implementations§
impl RefUnwindSafe for ConfidentialTxOutError
impl Send for ConfidentialTxOutError
impl Sync for ConfidentialTxOutError
impl Unpin for ConfidentialTxOutError
impl UnwindSafe for ConfidentialTxOutError
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