pub fn anonymously_encrypt<T: Serialize>(
        &self,
        plaintext: &T,
    ) -> Result<Vec<u8>, EncryptionError> {
        Ok(self.anonymously_encrypt_bytes(&serialize(plaintext)?))
    }
/// Encrypts serializable `plaintext` using anonymous encryption.
///
/// Anonymous encryption will use an ephemeral public key, so the recipient won't
/// be able to tell who sent the ciphertext.
/// If you wish to encrypt bytestring plaintext, use `anonymously_encrypt_bytes`.
/// To use authenticated encryption, use `SharedSecretKey`.
///
/// Returns ciphertext in case of success.
/// Can return an `Error` in case of a serialisation error.
Encrypts serializable `plaintext` using anonymous encryption.
Anonymous encryption will use an ephemeral public key, so the recipient won't
be able to tell who sent the ciphertext.
If you wish to encrypt bytestring plaintext, use `anonymously_encrypt_bytes`.
To use authenticated encryption, use `SharedSecretKey`.

Returns ciphertext in case of success.
Can return an `Error` in case of a serialisation error.
Encrypts serializable ` plaintext ` using anonymous encryption . Anonymous encryption will use an ephemeral public key so the recipient won ' t be able to tell who sent the ciphertext . If you wish to encrypt bytestring plaintext use ` anonymously_encrypt_bytes ` . To use authenticated encryption use ` SharedSecretKey ` . Returns ciphertext in case of success . Can return an ` Error ` in case of a serialisation error .
pub fn anonymously_encrypt<T: Serialize>(
        &self,
        plaintext: &T,
    ) -> Result<Vec<u8>, EncryptionError> {
        Ok(self.anonymously_encrypt_bytes(&serialize(plaintext)?))
    }
pub fn anonymously_encrypt < T : Serialize > ( & self , plaintext : & T , ) -> Result < Vec < u8 > , EncryptionError > { Ok ( self . anonymously_encrypt_bytes ( & serialize ( plaintext ) ? ) ) }
Encrypts serializable `plaintext` using anonymous encryption.
Encrypts serializable ` plaintext ` using anonymous encryption .
&self
plaintext
&T
&self
plaintext
&T