cryptoKxKeyPair method

  1. @override
Future<KeyPair> cryptoKxKeyPair()
override

Implementation

@override
Future<KeyPair> cryptoKxKeyPair() async {
  final kx = interop.crypto_kx_keypair();
  return KeyPair(
    pk: HexConverter.bytesToHex(kx.publicKey),
    sk: HexConverter.bytesToHex(kx.privateKey),
  );
}