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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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 !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Returns a new instance of the invocant that will be marked with M. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.