pub struct ReencryptionRequest {
pub capsules: Box<[Capsule]>,
pub hrac: HRAC,
pub encrypted_kfrag: EncryptedKeyFrag,
pub publisher_verifying_key: PublicKey,
pub bob_verifying_key: PublicKey,
pub conditions: Option<Conditions>,
pub context: Option<Context>,
}
Expand description
A request for an Ursula to reencrypt for several capsules.
Fields§
§capsules: Box<[Capsule]>
Capsules to re-encrypt.
hrac: HRAC
Policy HRAC.
encrypted_kfrag: EncryptedKeyFrag
Key frag encrypted for the Ursula.
publisher_verifying_key: PublicKey
Publisher’s verifying key.
bob_verifying_key: PublicKey
Recipient’s (Bob’s) verifying key.
conditions: Option<Conditions>
A blob of bytes containing decryption conditions for this message.
context: Option<Context>
A blob of bytes containing context required to evaluate conditions.
Implementations§
Trait Implementations§
Source§impl Debug for ReencryptionRequest
impl Debug for ReencryptionRequest
Source§impl<'de> Deserialize<'de> for ReencryptionRequest
impl<'de> Deserialize<'de> for ReencryptionRequest
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 ReencryptionRequest
impl PartialEq for ReencryptionRequest
Source§impl<'a> ProtocolObject<'a> for ReencryptionRequest
impl<'a> ProtocolObject<'a> for ReencryptionRequest
Source§impl Serialize for ReencryptionRequest
impl Serialize for ReencryptionRequest
impl StructuralPartialEq for ReencryptionRequest
Auto Trait Implementations§
impl Freeze for ReencryptionRequest
impl RefUnwindSafe for ReencryptionRequest
impl Send for ReencryptionRequest
impl Sync for ReencryptionRequest
impl Unpin for ReencryptionRequest
impl UnwindSafe for ReencryptionRequest
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> 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