CryptosignAuthentication.fromPkcs8PrivateKey constructor

CryptosignAuthentication.fromPkcs8PrivateKey(
  1. String pkcs8FileContent
)

Implementation

factory CryptosignAuthentication.fromPkcs8PrivateKey(
  String pkcs8FileContent,
) {
  return CryptosignAuthentication(
    SigningKey.fromSeed(
      Pkcs8.loadPrivateKeyFromPKCS8Ed25519(pkcs8FileContent),
    ),
    null,
  );
}