pub struct EncryptedThresholdDecryptionRequest {
pub ritual_id: u32,
pub requester_public_key: SessionStaticKey,
/* private fields */
}
Expand description
An encrypted request for an Ursula to derive a decryption share.
Fields§
§ritual_id: u32
ID of the ritual
requester_public_key: SessionStaticKey
Public key of requester
Implementations§
Source§impl EncryptedThresholdDecryptionRequest
impl EncryptedThresholdDecryptionRequest
Sourcepub fn decrypt(
&self,
shared_secret: &SessionSharedSecret,
) -> Result<ThresholdDecryptionRequest, DecryptionError>
pub fn decrypt( &self, shared_secret: &SessionSharedSecret, ) -> Result<ThresholdDecryptionRequest, DecryptionError>
Decrypts the decryption request
Trait Implementations§
Source§impl Clone for EncryptedThresholdDecryptionRequest
impl Clone for EncryptedThresholdDecryptionRequest
Source§fn clone(&self) -> EncryptedThresholdDecryptionRequest
fn clone(&self) -> EncryptedThresholdDecryptionRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for EncryptedThresholdDecryptionRequest
impl<'de> Deserialize<'de> for EncryptedThresholdDecryptionRequest
Source§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
Source§impl PartialEq for EncryptedThresholdDecryptionRequest
impl PartialEq for EncryptedThresholdDecryptionRequest
Source§fn eq(&self, other: &EncryptedThresholdDecryptionRequest) -> bool
fn eq(&self, other: &EncryptedThresholdDecryptionRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<'a> ProtocolObject<'a> for EncryptedThresholdDecryptionRequest
impl<'a> ProtocolObject<'a> for EncryptedThresholdDecryptionRequest
impl StructuralPartialEq for EncryptedThresholdDecryptionRequest
Auto Trait Implementations§
impl Freeze for EncryptedThresholdDecryptionRequest
impl RefUnwindSafe for EncryptedThresholdDecryptionRequest
impl Send for EncryptedThresholdDecryptionRequest
impl Sync for EncryptedThresholdDecryptionRequest
impl Unpin for EncryptedThresholdDecryptionRequest
impl UnwindSafe for EncryptedThresholdDecryptionRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromBytes for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBytes for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more