nacl_box method

Future<ResultOfNaclBox> nacl_box(
  1. ParamsOfNaclBox params
)

Encrypt and authenticate a message using the senders secret key, the receivers public key, and a nonce.

Implementation

Future<ResultOfNaclBox> nacl_box(ParamsOfNaclBox params) async {
  final res = await _tonCore.request('crypto.nacl_box', params.toString());
  return ResultOfNaclBox.fromMap(res);
}