pub enum MessageVerificationResult {
ERR_INVALID_ADDRESS,
ERR_ADDRESS_NO_KEY,
ERR_MALFORMED_SIGNATURE,
ERR_PUBKEY_NOT_RECOVERED,
ERR_NOT_SIGNED,
OK,
}
Expand description
| The result of a signed message verification. | | Message verification takes as an input: | | - address (with whose private key the | message is supposed to have been signed) | | - signature | | - message |
Variants§
ERR_INVALID_ADDRESS
| The provided address is invalid. |
ERR_ADDRESS_NO_KEY
| The provided address is valid but does | not refer to a public key. |
ERR_MALFORMED_SIGNATURE
| The provided signature couldn’t be | parsed (maybe invalid base64). |
ERR_PUBKEY_NOT_RECOVERED
| A public key could not be recovered from | the provided signature and message. |
ERR_NOT_SIGNED
| The message was not signed with the private | key of the provided address. |
OK
| The message verification was successful. |
Auto Trait Implementations§
impl Freeze for MessageVerificationResult
impl RefUnwindSafe for MessageVerificationResult
impl Send for MessageVerificationResult
impl Sync for MessageVerificationResult
impl Unpin for MessageVerificationResult
impl UnwindSafe for MessageVerificationResult
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