Struct schnorr_fun::adaptor::EncryptedSignature[][src]

pub struct EncryptedSignature<S = Public> {
    pub R: Point<EvenY, Public>,
    pub s_hat: Scalar<S, Zero>,
    pub needs_negation: bool,
}

A one-time encrypted Schnorr signature or “adaptor signature”.

Sometimes also called a “pre-signature”.

Fields

R: Point<EvenY, Public>

The R point in the signature

s_hat: Scalar<S, Zero>

The one-time encrypted s value of the signature.

needs_negation: bool

Whether the decryptor should negate their decryption key prior to decryption. This exists as a side effect of using “x-only” public keys.

Implementations

impl<OldSec> EncryptedSignature<OldSec>[src]

#[must_use]pub fn mark<NewSec: Secrecy>(self) -> EncryptedSignature<NewSec>[src]

Marks the encrypted signature with a Secrecy. If it is marked as Secret the operations (e.g. verification) on the signature encryption should be done in constant time.

Trait Implementations

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

impl<S: Debug> Debug for EncryptedSignature<S>[src]

impl<'de, S> Deserialize<'de> for EncryptedSignature<S> where
    S: Deserialize<'de>, 
[src]

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

impl<S> Serialize for EncryptedSignature<S> where
    S: Serialize
[src]

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

Auto Trait Implementations

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

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

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

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

impl<S> UnwindSafe for EncryptedSignature<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, 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.