Struct ethkey::Signature
[−]
[src]
pub struct Signature(_);
Methods
impl Signature
[src]
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 PartialEq for Signature
[src]
fn eq(&self, other: &Self) -> 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 Eq for Signature
[src]
impl Debug for Signature
[src]
impl Display for Signature
[src]
impl FromStr for Signature
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a string s
to return a value of this type. Read more
impl Default for Signature
[src]
impl Hash for Signature
[src]
fn hash<H: Hasher>(&self, state: &mut H)
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.
impl Clone for Signature
[src]
fn clone(&self) -> Self
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 From<[u8; 65]> for Signature
[src]
impl Into<[u8; 65]> for Signature
[src]
impl From<H520> for Signature
[src]
impl Deref for Signature
[src]
type Target = [u8; 65]
The resulting type after dereferencing
fn deref(&self) -> &Self::Target
The method called to dereference a value
impl DerefMut for Signature
[src]
fn deref_mut(&mut self) -> &mut Self::Target
The method called to mutably dereference a value