pub enum ValidateError {
HexError(FromHexError),
InvalidPublicKey,
InvalidSignature,
}Expand description
Why a key or signature was rejected
Variants§
HexError(FromHexError)
Public key or signature is not hex of the right length (32 / 64 bytes)
InvalidPublicKey
Public key is not a valid ed25519 key (or the host can’t import it)
InvalidSignature
Signature does not match
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValidateError
impl RefUnwindSafe for ValidateError
impl Send for ValidateError
impl Sync for ValidateError
impl Unpin for ValidateError
impl UnsafeUnpin for ValidateError
impl UnwindSafe for ValidateError
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