Returns the Key from the KeyId if found. this throws if not found.
Key getAnchorKey(String keyId) { if (keys.containsKey(keyId)) { return keys[keyId]!; } throw 'Key not found'; }