Function holochain::prelude::kitsune_p2p::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: 'static + Into<BufWrite> + Send,
M: 'static + Into<BufRead> + Send,
P: 'static + Into<BufReadSized<_>> + Send,
Expand description
seal (encrypt) a message with an ephemeral key that can’t even be decrypted by this sender.