nacl_secret_box_open method

Future<ResultOfNaclBoxOpen> nacl_secret_box_open(
  1. ParamsOfNaclSecretBoxOpen params
)

Decrypts and verifies cipher text using nonce and secret key.

Implementation

Future<ResultOfNaclBoxOpen> nacl_secret_box_open(
    ParamsOfNaclSecretBoxOpen params) async {
  final res = await _tonCore.request(
      'crypto.nacl_secret_box_open', params.toString());
  return ResultOfNaclBoxOpen.fromMap(res);
}