getStandardIssuerPrivateKey method

Future<String?> getStandardIssuerPrivateKey([
  1. KeyType keyType = KeyType.secp256k1
])

Returns the private key for issuing credentials.

Implementation

Future<String?> getStandardIssuerPrivateKey(
    [KeyType keyType = KeyType.secp256k1]) async {
  var issuerDid = getStandardIssuerDid(keyType);
  if (issuerDid == null) throw Exception('Can\'t find a standard issuer did');
  return getPrivateKeyForCredentialDid(issuerDid);
}