Skip to main content

SyncKeyProvider

Trait SyncKeyProvider 

Source
pub trait SyncKeyProvider: Send + Sync {
    // Required method
    fn cipher_for(&self, scope: &Scope) -> Arc<dyn PayloadCipher> ;
}
Expand description

Supplies the PayloadCipher for a scope’s encryption audience. The daemon holds one and asks for a cipher per op-scope, so a remote relay only ever sees ciphertext under the right (personal / org) key.

Required Methods§

Source

fn cipher_for(&self, scope: &Scope) -> Arc<dyn PayloadCipher>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§