getStandardIssuerDid method

String? getStandardIssuerDid([
  1. KeyType keyType = KeyType.secp256k1
])

Returns the DID for issuing credentials.

Implementation

String? getStandardIssuerDid([KeyType keyType = KeyType.secp256k1]) {
  if (keyType == KeyType.secp256k1) {
    return _keyBox!.get('issuerDid');
  } else if (keyType == KeyType.ed25519) {
    return _keyBox!.get('issuerDidEd');
  } else {
    throw Exception('unknown keyType');
  }
}