pub struct ThresholdDecryptionRequest {
pub ritual_id: u32,
pub ciphertext_header: CiphertextHeader,
pub acp: AccessControlPolicy,
pub context: Option<Context>,
pub variant: FerveoVariant,
}
Expand description
A request for an Ursula to derive a decryption share.
Fields§
§ritual_id: u32
The ID of the ritual.
ciphertext_header: CiphertextHeader
The ciphertext to generate a decryption share for.
acp: AccessControlPolicy
The associated access control metadata.
context: Option<Context>
A blob of bytes containing context required to evaluate conditions.
variant: FerveoVariant
The ferveo variant to use for the decryption share derivation.
Implementations§
Source§impl ThresholdDecryptionRequest
impl ThresholdDecryptionRequest
Sourcepub fn new(
ritual_id: u32,
ciphertext_header: &CiphertextHeader,
acp: &AccessControlPolicy,
context: Option<&Context>,
variant: FerveoVariant,
) -> Self
pub fn new( ritual_id: u32, ciphertext_header: &CiphertextHeader, acp: &AccessControlPolicy, context: Option<&Context>, variant: FerveoVariant, ) -> Self
Creates a new decryption request.
Sourcepub fn encrypt(
&self,
shared_secret: &SessionSharedSecret,
requester_public_key: &SessionStaticKey,
) -> EncryptedThresholdDecryptionRequest
pub fn encrypt( &self, shared_secret: &SessionSharedSecret, requester_public_key: &SessionStaticKey, ) -> EncryptedThresholdDecryptionRequest
Encrypts the decryption request.
Trait Implementations§
Source§impl Clone for ThresholdDecryptionRequest
impl Clone for ThresholdDecryptionRequest
Source§fn clone(&self) -> ThresholdDecryptionRequest
fn clone(&self) -> ThresholdDecryptionRequest
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 Debug for ThresholdDecryptionRequest
impl Debug for ThresholdDecryptionRequest
Source§impl<'de> Deserialize<'de> for ThresholdDecryptionRequest
impl<'de> Deserialize<'de> for ThresholdDecryptionRequest
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<'a> ProtocolObject<'a> for ThresholdDecryptionRequest
impl<'a> ProtocolObject<'a> for ThresholdDecryptionRequest
impl Eq for ThresholdDecryptionRequest
impl StructuralPartialEq for ThresholdDecryptionRequest
Auto Trait Implementations§
impl Freeze for ThresholdDecryptionRequest
impl RefUnwindSafe for ThresholdDecryptionRequest
impl Send for ThresholdDecryptionRequest
impl Sync for ThresholdDecryptionRequest
impl Unpin for ThresholdDecryptionRequest
impl UnwindSafe for ThresholdDecryptionRequest
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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