[][src]Struct ecdsa_fun::Signature

pub struct Signature<S = Public> {
    pub R_x: Scalar<Public, NonZero>,
    pub s: Scalar<S, NonZero>,
}

An ECDSA signature

Fields

R_x: Scalar<Public, NonZero>s: Scalar<S, NonZero>

Implementations

impl<S> Signature<S>[src]

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

pub fn as_tuple(&self) -> (&Scalar<Public, NonZero>, &Scalar<S, NonZero>)[src]

pub fn mark<SigSec: Secrecy>(self) -> Signature<SigSec>[src]

impl Signature<Public>[src]

pub fn from_bytes(bytes: [u8; 64]) -> Option<Self>[src]

Trait Implementations

impl<S: Clone> Clone for Signature<S>[src]

impl<S> Debug for Signature<S>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the type as hex and any markers on the type.

impl<'de, S: Secrecy> Deserialize<'de> for Signature<S>[src]

impl<S> Display for Signature<S>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Displays as hex.

impl<S: Secrecy> FromStr for Signature<S>[src]

type Err = HexError

The associated error which can be returned from parsing.

fn from_str(hex: &str) -> Result<Signature<S>, HexError>[src]

Parses the string as hex and interprets tries to convert the resulting byte array into the desired value.

impl<S: PartialEq> PartialEq<Signature<S>> for Signature<S>[src]

impl<S> Serialize for Signature<S>[src]

impl<S> StructuralPartialEq for Signature<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for Signature<S> where
    S: RefUnwindSafe

impl<S> Send for Signature<S> where
    S: Send

impl<S> Sync for Signature<S> where
    S: Sync

impl<S> Unpin for Signature<S> where
    S: Unpin

impl<S> UnwindSafe for Signature<S> where
    S: UnwindSafe

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Mark for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.