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: u32ID of the ritual
requester_public_key: SessionStaticKeyPublic 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<EncryptedThresholdDecryptionRequest> for EncryptedThresholdDecryptionRequest
impl PartialEq<EncryptedThresholdDecryptionRequest> for EncryptedThresholdDecryptionRequest
source§fn eq(&self, other: &EncryptedThresholdDecryptionRequest) -> bool
fn eq(&self, other: &EncryptedThresholdDecryptionRequest) -> bool
This method 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 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