Trait Encrypt

Source
pub trait Encrypt {
    type Output;

    // Required method
    fn encrypt(key_pair: &KeyPair, value: u32) -> Self::Output;
}
Expand description

Helper trait for encrypting data

Required Associated Types§

Required Methods§

Source

fn encrypt(key_pair: &KeyPair, value: u32) -> Self::Output

Encrypts data using key_pair and outputs Self::Output

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§