Trait btlib::crypto::EncrypterExt
source · pub trait EncrypterExt: Encrypter {
// Provided method
fn ser_encrypt<T: Serialize>(&self, value: &T) -> Result<Ciphertext<T>> { ... }
}
Provided Methods§
sourcefn ser_encrypt<T: Serialize>(&self, value: &T) -> Result<Ciphertext<T>>
fn ser_encrypt<T: Serialize>(&self, value: &T) -> Result<Ciphertext<T>>
Serializes the given value into a new vector, then encrypts it and returns the resulting ciphertext.