pub enum WalletUtilsError {
Show 14 variants
SystemTimeCheckedAddOverflow,
ExpiryTimeEarlierThanIssuedTime,
ExpirationTimeIsInThePast,
NotBeforeTimeEarlierThanIssuedTime,
NotBeforeTimeIsInThePast,
NotBeforeTimeLaterThanExpirationTime,
InvalidISO8601Timestamp(String),
InvalidBase58Address,
InvalidEd25519PublicKeyBytes,
InvalidSignature,
Expected64ByteLength,
Expected32ByteLength,
NonceMustBeAtLeast8Characters,
MessageResponseMismatch,
}Expand description
Errors for this crate
Variants§
SystemTimeCheckedAddOverflow
Overflow during SystemTime::checked_add(expiration_time_milliseconds) overflow
ExpiryTimeEarlierThanIssuedTime
This token expires earlier than it was issued. Make sure to set the expiry time to be a later date than the issued time
ExpirationTimeIsInThePast
The expiration time is set to expire in the past
NotBeforeTimeEarlierThanIssuedTime
This token becomes valid earlier than it was issued. Make sure to set the not_before time to be equal to or a later date than the issued time
NotBeforeTimeIsInThePast
NotBefore time is set in the past
NotBeforeTimeLaterThanExpirationTime
This token becomes valid after it has already expired. Make sure to set the not_before time to be equal to or a date before expiry time
InvalidISO8601Timestamp(String)
Expected a timestamp in the format specified by ISO8601
InvalidBase58Address
Invalid Base58 Address
InvalidEd25519PublicKeyBytes
The bytes provided for the Ed25519 Public Key are invalid
InvalidSignature
The Ed25519 Signature is invalid for the signed message and public key“)]
Expected64ByteLength
The byte length should be equal to 64 bytes in length
Expected32ByteLength
The byte length should be equal to 32 bytes in length
NonceMustBeAtLeast8Characters
The nonce is required to be at least 8 characters long
MessageResponseMismatch
The message signed by the wallet is not the same as the message sent to the wallet for signing
Trait Implementations§
Source§impl Clone for WalletUtilsError
impl Clone for WalletUtilsError
Source§fn clone(&self) -> WalletUtilsError
fn clone(&self) -> WalletUtilsError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more