function encryptChaCha20
encryptChaCha20(
payload: Uint8Array,
recipients: (PublicX25519)[],
): JWE

Encrypt the provided payload for the provided recipient array using XC20P algorithm.

Parameters

payload: Uint8Array
recipients: (PublicX25519)[]

Return Type