Struct ethcore::account_provider::Signature
[−]
[src]
pub struct Signature(_);
Methods
impl Signature
fn r(&self) -> &[u8]
Get a slice into the 'r' portion of the data.
fn s(&self) -> &[u8]
Get a slice into the 's' portion of the data.
fn v(&self) -> u8
Get the recovery byte.
fn from_rsv(r: &H256, s: &H256, v: u8) -> Signature
Create a signature object from the sig.
fn is_low_s(&self) -> bool
Check if this is a "low" signature.
fn is_valid(&self) -> bool
Check if each component of the signature is in range.
Trait Implementations
impl FromStr for Signature
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Signature, Signature::Err>
Parses a string s
to return a value of this type. Read more
impl Default for Signature
impl Eq for Signature
impl PartialEq<Signature> for Signature
fn eq(&self, other: &Signature) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Into<[u8; 65]> for Signature
impl Deref for Signature
type Target = [u8; 65]
The resulting type after dereferencing
fn deref(&self) -> &Signature::Target
The method called to dereference a value
impl Debug for Signature
impl Display for Signature
impl From<[u8; 65]> for Signature
impl From<H520> for Signature
impl Clone for Signature
fn clone(&self) -> Signature
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Hash for Signature
fn hash<H>(&self, state: &mut H) where H: Hasher
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.