pub enum TapretKeyError {
OutputAlreadyHasCommitment,
TapretProhibited,
NotTaprootOutput,
NoCommitment,
InvalidCommitment,
TapTreeNonEmpty,
NoInternalKey,
}
Expand description
Errors processing tapret-related proprietary PSBT keys and their values.
Variants§
OutputAlreadyHasCommitment
output already contains commitment; there must be a single commitment per output.
TapretProhibited
the output is not marked to host tapret commitments. Please first set PSBT_OUT_TAPRET_HOST flag.
NotTaprootOutput
the provided output is not a taproot output and can’t host a tapret commitment.
NoCommitment
the output contains no valid tapret commitment.
InvalidCommitment
the value of tapret commitment has invalid length.
TapTreeNonEmpty
use of taproot script descriptors is not yet supported. You may also check the latest version of the software which may already support this feature.
NoInternalKey
taproot output doesn’t specify internal key.
Trait Implementations§
Source§impl Clone for TapretKeyError
impl Clone for TapretKeyError
Source§fn clone(&self) -> TapretKeyError
fn clone(&self) -> TapretKeyError
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 TapretKeyError
impl Debug for TapretKeyError
Source§impl Display for TapretKeyError
impl Display for TapretKeyError
Source§impl Error for TapretKeyError
impl Error for TapretKeyError
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()
Source§impl From<TapretKeyError> for DbcPsbtError
impl From<TapretKeyError> for DbcPsbtError
Source§fn from(v: TapretKeyError) -> DbcPsbtError
fn from(v: TapretKeyError) -> DbcPsbtError
Converts to this type from the input type.
Source§impl Hash for TapretKeyError
impl Hash for TapretKeyError
Source§impl Ord for TapretKeyError
impl Ord for TapretKeyError
Source§fn cmp(&self, other: &TapretKeyError) -> Ordering
fn cmp(&self, other: &TapretKeyError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TapretKeyError
impl PartialEq for TapretKeyError
Source§impl PartialOrd for TapretKeyError
impl PartialOrd for TapretKeyError
impl Copy for TapretKeyError
impl Eq for TapretKeyError
impl StructuralPartialEq for TapretKeyError
Auto Trait Implementations§
impl Freeze for TapretKeyError
impl RefUnwindSafe for TapretKeyError
impl Send for TapretKeyError
impl Sync for TapretKeyError
impl Unpin for TapretKeyError
impl UnwindSafe for TapretKeyError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.