Struct cry::schnorr::Signature [−][src]
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]
sk: &Keypair<P, S>,
message: &M
) -> Signature<P, S>
pub fn verify<D: Digest, M: AsRef<[u8]>>(
&self,
pk: &BarePublicKey<P>,
message: &M
) -> bool
[src]
&self,
pk: &BarePublicKey<P>,
message: &M
) -> bool
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,
P: RefUnwindSafe,
S: RefUnwindSafe,
impl<P, S> Send for Signature<P, S> where
P: Send,
S: Send,
P: Send,
S: Send,
impl<P, S> Sync for Signature<P, S> where
P: Sync,
S: Sync,
P: Sync,
S: Sync,
impl<P, S> Unpin for Signature<P, S> where
P: Unpin,
S: Unpin,
P: Unpin,
S: Unpin,
impl<P, S> UnwindSafe for Signature<P, S> where
P: UnwindSafe,
S: UnwindSafe,
P: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,