Struct cry::schnorr::Signature[][src]

pub struct Signature<P: DisLogPoint<Scalar = S>, S: ScalarNumber> {
    pub R: Point<P>,
    pub s: Scalar<S>,
}

Fields

R: Point<P>s: Scalar<S>

Implementations

impl<P: DisLogPoint<Scalar = S>, S: ScalarNumber> Signature<P, S>[src]

pub fn sign<D: Digest, M: AsRef<[u8]>>(
    sk: &Keypair<P, S>,
    message: &M
) -> Signature<P, S>
[src]

pub fn verify<D: Digest, M: AsRef<[u8]>>(
    &self,
    pk: &BarePublicKey<P>,
    message: &M
) -> bool
[src]

Trait Implementations

impl<P: Clone + DisLogPoint<Scalar = S>, S: Clone + ScalarNumber> Clone for Signature<P, S>[src]

impl<P: Debug + DisLogPoint<Scalar = S>, S: Debug + ScalarNumber> Debug for Signature<P, S>[src]

Auto Trait Implementations

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

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

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

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

impl<P, S> UnwindSafe for Signature<P, S> where
    P: UnwindSafe,
    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> 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.