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, }
Expand description
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
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Returns a new instance of the invocant that will be marked with M
. Read more
type Output = T
type Output = T
Should always be Self