pub enum LogicError {
InvalidLength {
field: &'static str,
expected: usize,
actual: usize,
},
HashMismatch,
SignatureInvalid,
MerkleProofInvalid,
EntangledIdMismatch,
BinaryNotAllowed,
TimestampInvalid,
NonceInvalid,
PublicKeyInvalid,
}Expand description
Errors that can occur in saorsa-logic.
This enum is designed to be compact and no_std compatible.
Variants§
InvalidLength
Invalid input length for an operation.
Fields
HashMismatch
Hash verification failed.
SignatureInvalid
Signature verification failed.
MerkleProofInvalid
Merkle proof verification failed.
EntangledIdMismatch
EntangledId verification failed.
BinaryNotAllowed
Binary hash not in allowlist.
TimestampInvalid
Timestamp validation failed (e.g., sunset expired).
NonceInvalid
Nonce validation failed.
PublicKeyInvalid
Public key format is invalid.
Trait Implementations§
Source§impl Clone for LogicError
impl Clone for LogicError
Source§fn clone(&self) -> LogicError
fn clone(&self) -> LogicError
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 LogicError
impl Debug for LogicError
Source§impl Display for LogicError
impl Display for LogicError
Source§impl PartialEq for LogicError
impl PartialEq for LogicError
impl Copy for LogicError
impl Eq for LogicError
impl StructuralPartialEq for LogicError
Auto Trait Implementations§
impl Freeze for LogicError
impl RefUnwindSafe for LogicError
impl Send for LogicError
impl Sync for LogicError
impl Unpin for LogicError
impl UnwindSafe for LogicError
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