CryptosignAuthentication.fromOpenSshPrivateKey constructor

CryptosignAuthentication.fromOpenSshPrivateKey(
  1. String openSshFileContent, {
  2. String? password,
})

Implementation

factory CryptosignAuthentication.fromOpenSshPrivateKey(
  String openSshFileContent, {
  String? password,
}) {
  return CryptosignAuthentication(
    SigningKey.fromSeed(
      Pem.loadPrivateKeyFromOpenSSHPem(
        openSshFileContent,
        password: password,
      ),
    ),
    null,
  );
}