getEncryptionPrivateKey method

Future<String?> getEncryptionPrivateKey()

get it from atChops if we have it, otherwise try the keystore

Implementation

Future<String?> getEncryptionPrivateKey() async {
  String? v = atChopsKeys?.atEncryptionKeyPair?.atPrivateKey.privateKey;
  v ??= (await keyStore!.get(AtConstants.atEncryptionPrivateKey))?.data;
  return v;
}