create static method

Future<SchnorrEncryptionKey> create()

Implementation

static Future<SchnorrEncryptionKey> create() async {
  final decRes = await newDecKey();
  final encPubKey = await getEncPubkeyBytes(sk: decRes);

  return SchnorrEncryptionKey(privateKeyHandle: decRes, publicKey: encPubKey);
}