pub enum Error {
InvalidSignature = 36_000,
PermitExpired = 36_001,
InvalidPublicKey = 36_002,
}Expand description
Errors raised by CEP-2612 permit operations.
Variants§
InvalidSignature = 36_000
Signature verification against the supplied public key failed, or the
recomputed digest does not match what the signer signed (e.g. wrong
value, nonce, spender, or deadline).
PermitExpired = 36_001
The current block time is past the deadline timestamp (a Unix
timestamp in seconds, per the ERC-2612 convention). Permits with
deadline == u64::MAX skip this check and never expire.
InvalidPublicKey = 36_002
The supplied public_key does not hash to the declared owner
address. Guards against using a valid signature from a different
keypair to approve on someone else’s behalf.
Trait Implementations§
Source§impl SchemaErrors for Error
Available on non-WebAssembly only.
impl SchemaErrors for Error
Available on non-WebAssembly only.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more