[][src]Struct solana_libra_crypto::signing::Signature

pub struct Signature { /* fields omitted */ }

An ed25519 signature.

Methods

impl Signature[src]

pub fn from_compact(data: &[u8]) -> Result<Self>[src]

Obtains a signature from a byte representation

pub fn to_compact(&self) -> [u8; 64][src]

Converts the signature to its byte representation

pub fn check_malleability(&self) -> Result<()>[src]

Check for malleable signatures. This method ensures that the S part is of canonical form and R does not lie on a small group (S and R as defined in RFC 8032).

Trait Implementations

impl Clone for Signature[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<Signature> for Signature[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Copy for Signature[src]

impl Eq for Signature[src]

impl Debug for Signature[src]

impl Hash for Signature[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<'de> Deserialize<'de> for Signature[src]

Auto Trait Implementations

Blanket Implementations

impl<T> TestOnlyHash for T where
    T: Serialize + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,