pub struct RecoverableSignature { /* private fields */ }Expand description
A signature with the recovery byte attached.
Implementations§
Source§impl RecoverableSignature
impl RecoverableSignature
Sourcepub fn to_be_bytes(&self) -> Box<[u8]>
pub fn to_be_bytes(&self) -> Box<[u8]>
Returns the signature serialized as concatenated r, s, and v
in big endian order (32+32+1 bytes).
Sourcepub fn try_from_be_bytes(bytes: &[u8]) -> Result<Self, String>
pub fn try_from_be_bytes(bytes: &[u8]) -> Result<Self, String>
Restores the signature from concatenated r, s, and v
in big endian order (32+32+1 bytes).
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 · 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
Available on crate feature serde only.
impl<'de> Deserialize<'de> for RecoverableSignature
Available on crate feature
serde only.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 Display for RecoverableSignature
impl Display for RecoverableSignature
Source§impl PartialEq for RecoverableSignature
impl PartialEq for RecoverableSignature
Source§impl Serialize for RecoverableSignature
Available on crate feature serde only.
impl Serialize for RecoverableSignature
Available on crate feature
serde only.Source§impl TryFromBytes for RecoverableSignature
Available on crate feature serde only.
impl TryFromBytes for RecoverableSignature
Available on crate feature
serde only.impl Eq 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 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