Skip to main content

EncryptionProvider

Trait EncryptionProvider 

Source
pub trait EncryptionProvider:
    Send
    + Sync
    + Debug {
    // Required method
    fn encrypt(
        &self,
        payload: Bytes,
    ) -> Result<EncryptedPayload, EncryptionError>;
}
Expand description

Provider for encrypting payloads for E2EE.

Required Methods§

Source

fn encrypt(&self, payload: Bytes) -> Result<EncryptedPayload, EncryptionError>

Encrypts the given payload being sent by the local participant.

Implementors§