encryptPrivateKey static method

Future<String> encryptPrivateKey(
  1. String privateKey,
  2. String password,
  3. PEMCipher cipher
)

Implementation

static Future<String> encryptPrivateKey(
    String privateKey, String password, PEMCipher cipher) async {
  var request = EncryptPrivateKeyRequest()
    ..privateKey = privateKey
    ..password = password
    ..cipher = cipher;

  return await _stringResponse("encryptPrivateKey", request.writeToBuffer());
}