cryptoBoxBeforeNm method

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

Implementation

@override
Future<String> cryptoBoxBeforeNm(KeyPair keyPair) async {
  final pk = HexConverter.hexToBytes(keyPair.pk);
  final sk = HexConverter.hexToBytes(keyPair.sk);
  final result = interop.crypto_box_beforenm(pk, sk);
  return HexConverter.bytesToHex(result);
}