pub struct SignedData {
pub message: Vec<u8>,
pub message_hash: H256,
pub v: u8,
pub r: H256,
pub s: H256,
pub signature: Bytes,
}
Expand description
Struct representing signed data returned from Accounts::sign
method.
Fields§
§message: Vec<u8>
The original message that was signed.
message_hash: H256
The keccak256 hash of the signed data.
v: u8
V value in ‘Electrum’ notation.
r: H256
R value.
s: H256
S value.
signature: Bytes
The signature bytes.
Trait Implementations§
Source§impl Clone for SignedData
impl Clone for SignedData
Source§fn clone(&self) -> SignedData
fn clone(&self) -> SignedData
Returns a copy 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 SignedData
impl Debug for SignedData
Source§impl<'de> Deserialize<'de> for SignedData
impl<'de> Deserialize<'de> for SignedData
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<'a> From<&'a SignedData> for Recovery
impl<'a> From<&'a SignedData> for Recovery
Source§fn from(signed: &'a SignedData) -> Self
fn from(signed: &'a SignedData) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SignedData
impl PartialEq for SignedData
Source§impl Serialize for SignedData
impl Serialize for SignedData
impl StructuralPartialEq for SignedData
Auto Trait Implementations§
impl Freeze for SignedData
impl RefUnwindSafe for SignedData
impl Send for SignedData
impl Sync for SignedData
impl Unpin for SignedData
impl UnwindSafe for SignedData
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