Function holochain::prelude::dependencies::kitsune_p2p_types::dependencies::lair_keystore_api::dependencies::hc_seed_bundle::dependencies::sodoken::crypto_box::curve25519xsalsa20poly1305::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: 'static + Into<BufReadSized<_>> + Send,
M: 'static + Into<BufRead> + Send,
P: 'static + Into<BufReadSized<_>> + Send,
S: 'static + Into<BufReadSized<_>> + Send,
Expand description
encrypt data with box_curve25519xsalsa20poly1305_easy