getPrivateKey method

Future<String?> getPrivateKey(
  1. String atsign
)

Fetches privatekey for atsign from device keychain.

Implementation

Future<String?> getPrivateKey(String atsign) async {
  return await KeyChainManager.getInstance()
      .getPkamPrivateKey(atsign)
      .timeout(Duration(seconds: AppConstants.responseTimeLimit),
          onTimeout: () => _onTimeOut());
}