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 RefUnwindSafe for MessageVerificationResult
impl Send for MessageVerificationResult
impl Sync for MessageVerificationResult
impl Unpin for MessageVerificationResult
impl UnwindSafe for MessageVerificationResult
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more