pub enum RightError {
MissingOwnershipProof,
InvalidOwnershipProof,
InvalidCommitment,
AlreadyConsumed,
InvalidNullifier,
InvalidEncoding,
InvalidRightId,
}Expand description
Right validation errors.
Variants§
MissingOwnershipProof
The ownership proof is missing from the Right
InvalidOwnershipProof
The ownership proof failed cryptographic signature verification
InvalidCommitment
The commitment is invalid (zero hash)
AlreadyConsumed
The Right has already been consumed and cannot be used again
InvalidNullifier
The nullifier is invalid or does not match the expected format
InvalidEncoding
The canonical encoding of the Right is invalid
InvalidRightId
The RightId does not match the computed H(commitment || salt)
Trait Implementations§
Source§impl Clone for RightError
impl Clone for RightError
Source§fn clone(&self) -> RightError
fn clone(&self) -> RightError
Returns a duplicate 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 RightError
impl Debug for RightError
Source§impl Display for RightError
impl Display for RightError
Source§impl Error for RightError
impl Error for RightError
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<RightError> for ValidationError
impl From<RightError> for ValidationError
Source§fn from(source: RightError) -> Self
fn from(source: RightError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RightError
impl PartialEq for RightError
impl Eq for RightError
impl StructuralPartialEq for RightError
Auto Trait Implementations§
impl Freeze for RightError
impl RefUnwindSafe for RightError
impl Send for RightError
impl Sync for RightError
impl Unpin for RightError
impl UnsafeUnpin for RightError
impl UnwindSafe for RightError
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