Function holochain::prelude::kitsune_p2p::dependencies::kitsune_p2p_types::dependencies::lair_keystore_api::dependencies::hc_seed_bundle::dependencies::sodoken::crypto_box::curve25519xchacha20poly1305::easy
source · pub async fn easy<N, M, P, S>(
nonce: N,
message: M,
dest_pub_key: P,
src_sec_key: S
) -> impl Future<Output = Result<BufRead, OneErr>>where
N: Into<BufReadSized<sodoken::::crypto_box::curve25519xchacha20poly1305::easy::{constant#0}>> + 'static + Send,
M: Into<BufRead> + 'static + Send,
P: Into<BufReadSized<sodoken::::crypto_box::curve25519xchacha20poly1305::easy::{constant#1}>> + 'static + Send,
S: Into<BufReadSized<sodoken::::crypto_box::curve25519xchacha20poly1305::easy::{constant#2}>> + 'static + Send,
Expand description
encrypt data with box_curve25519xchacha20poly1305_easy