cryptoBoxBeforeNm method

  1. @override
Future<String> cryptoBoxBeforeNm(
  1. KeyPair keyPair
)
override

Implementation

@override
Future<String> cryptoBoxBeforeNm(KeyPair keyPair) async {
  final data = await methodChannel.invokeMethod<String>(
    boxBeforeNmMethod,
    <String, dynamic>{
      'pk': keyPair.pk,
      'sk': keyPair.sk,
    },
  );
  return data ?? '';
}