[−][src]Struct clarity::Signature
Fields
v: Uint256
r: Uint256
s: Uint256
Methods
impl Signature
[src]
impl Signature
pub fn new(v: Uint256, r: Uint256, s: Uint256) -> Signature
[src]
pub fn new(v: Uint256, r: Uint256, s: Uint256) -> Signature
pub fn is_valid(&self) -> bool
[src]
pub fn is_valid(&self) -> bool
pub fn network_id(&self) -> Option<Uint256>
[src]
pub fn network_id(&self) -> Option<Uint256>
pub fn check_low_s_metropolis(&self) -> Result<(), Error>
[src]
pub fn check_low_s_metropolis(&self) -> Result<(), Error>
pub fn check_low_s_homestead(&self) -> Result<(), Error>
[src]
pub fn check_low_s_homestead(&self) -> Result<(), Error>
pub fn into_bytes(self) -> [u8; 65]
[src]
pub fn into_bytes(self) -> [u8; 65]
Converts a signature into a bytes string.
A signature in binary form consists of 65 bytes where first 32 bytes are "r" in big endian form, next 32 bytes are "s" in big endian form, and at the end there is one byte made of "v".
This also consumes the signature.
Trait Implementations
impl Clone for Signature
[src]
impl Clone for Signature
fn clone(&self) -> Signature
[src]
fn clone(&self) -> Signature
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for Signature
[src]
impl Eq for Signature
impl ToString for Signature
[src]
impl ToString for Signature
impl Default for Signature
[src]
impl Default for Signature
impl PartialEq<Signature> for Signature
[src]
impl PartialEq<Signature> for Signature
impl Debug for Signature
[src]
impl Debug for Signature
impl Hash for Signature
[src]
impl Hash for Signature
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Serialize for Signature
[src]
impl Serialize for Signature
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
impl<'de> Deserialize<'de> for Signature
[src]
impl<'de> Deserialize<'de> for Signature
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self