pub enum RecoverableSignature {
Eip191Signature(Vec<u8>),
}Variants§
Implementations§
Source§impl RecoverableSignature
impl RecoverableSignature
pub fn recover_address( &self, predigest_message: &str, ) -> Result<String, SignatureError>
Trait Implementations§
Source§impl Clone for RecoverableSignature
impl Clone for RecoverableSignature
Source§fn clone(&self) -> RecoverableSignature
fn clone(&self) -> RecoverableSignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecoverableSignature
impl Debug for RecoverableSignature
Source§impl<'de> Deserialize<'de> for RecoverableSignature
impl<'de> Deserialize<'de> for RecoverableSignature
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<RecoverableSignature> for Vec<u8>
impl From<RecoverableSignature> for Vec<u8>
Source§fn from(value: RecoverableSignature) -> Self
fn from(value: RecoverableSignature) -> Self
Converts to this type from the input type.
Source§impl From<Signature> for RecoverableSignature
impl From<Signature> for RecoverableSignature
Source§impl PartialEq for RecoverableSignature
impl PartialEq for RecoverableSignature
Source§fn eq(&self, other: &RecoverableSignature) -> bool
fn eq(&self, other: &RecoverableSignature) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RecoverableSignature
impl Serialize for RecoverableSignature
impl StructuralPartialEq for RecoverableSignature
Auto Trait Implementations§
impl Freeze for RecoverableSignature
impl RefUnwindSafe for RecoverableSignature
impl Send for RecoverableSignature
impl Sync for RecoverableSignature
impl Unpin for RecoverableSignature
impl UnsafeUnpin for RecoverableSignature
impl UnwindSafe for RecoverableSignature
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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