Struct TransformBlock
pub struct TransformBlock { /* private fields */ }
Expand description
Describes a single transform. Multiple TransformBlocks
(in series) describe multi-hop transforms.
Implementations§
§impl TransformBlock
impl TransformBlock
pub fn new(
public_key: &PublicKey,
encrypted_temp_key: &EncryptedTempKey,
random_transform_public_key: &PublicKey,
encrypted_random_transform_temp_key: &EncryptedTempKey,
) -> Result<TransformBlock, RecryptErr>
pub fn new( public_key: &PublicKey, encrypted_temp_key: &EncryptedTempKey, random_transform_public_key: &PublicKey, encrypted_random_transform_temp_key: &EncryptedTempKey, ) -> Result<TransformBlock, RecryptErr>
Construct TransformBlock from constituent parts.
public_key
- public key corresponding to private key used to encrypt the temp keyencrypted_temp_key
- random value generated for the transform key and encrypted to the delegatee. Copied from the parentTransformKey
random_transform_public_key
- public key corresponding to the private key used to encrypt the random re-encryptionencrypted_random_transform_temp_key
encrypted_random_transform_temp_key
- encrypted temp key value. Used to go from the transformed value to the encrypted value
pub fn public_key(&self) -> &PublicKey
pub fn encrypted_temp_key(&self) -> &EncryptedTempKey
pub fn random_transform_public_key(&self) -> &PublicKey
pub fn encrypted_random_transform_temp_key(&self) -> &EncryptedTempKey
Trait Implementations§
§impl Clone for TransformBlock
impl Clone for TransformBlock
§fn clone(&self) -> TransformBlock
fn clone(&self) -> TransformBlock
Returns a duplicate 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 more§impl Debug for TransformBlock
impl Debug for TransformBlock
§impl Hash for TransformBlock
impl Hash for TransformBlock
§impl PartialEq for TransformBlock
impl PartialEq for TransformBlock
impl Copy for TransformBlock
impl Eq for TransformBlock
Auto Trait Implementations§
impl Freeze for TransformBlock
impl RefUnwindSafe for TransformBlock
impl Send for TransformBlock
impl Sync for TransformBlock
impl Unpin for TransformBlock
impl UnwindSafe for TransformBlock
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