Function holochain::prelude::dependencies::kitsune_p2p_types::dependencies::lair_keystore_api::dependencies::hc_seed_bundle::dependencies::sodoken::crypto_box::curve25519xchacha20poly1305::seal
source · pub async fn seal<C, M, P>(
cipher: C,
message: M,
dest_pub_key: P
) -> impl Future<Output = Result<(), OneErr>>where
C: Into<BufWrite> + 'static + Send,
M: Into<BufRead> + 'static + Send,
P: Into<BufReadSized<sodoken::::crypto_box::curve25519xchacha20poly1305::seal::{constant#0}>> + 'static + Send,
Expand description
seal (encrypt) a message with an ephemeral key that can’t even be decrypted by this sender.