[][src]Struct nisty::Signature

pub struct Signature(_);

Pair of two curve scalars.

Methods

impl Signature[src]

pub fn from_bytes(signature_bytes: [u8; 64]) -> Self[src]

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

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

pub fn to_asn1_der(&self) -> Bytes<U72>[src]

Trait Implementations

impl AsArrayRef<[u8; 64]> for Signature[src]

impl<'_> AsArrayRef<[u8; 64]> for &'_ Signature[src]

impl Clone for Signature[src]

impl Copy for Signature[src]

impl Debug for Signature[src]

impl From<[u8; 64]> for Signature[src]

impl Into<[u8; 64]> for Signature[src]

impl PartialEq<Signature> for Signature[src]

Auto Trait Implementations

impl Send for Signature

impl Sync for Signature

impl Unpin for Signature

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.