getAnchorKey method

Key getAnchorKey(
  1. String keyId
)

Returns the Key from the KeyId if found. this throws if not found.

Implementation

Key getAnchorKey(String keyId) {
  if (keys.containsKey(keyId)) {
    return keys[keyId]!;
  }
  throw 'Key not found';
}