| 155 | |
| 156 | |
| 157 | class SelfManagedServerKey(NamedTuple): |
| 158 | key_id: int |
| 159 | public_key: str # base64url, 65-byte uncompressed P-256 point |
| 160 | source: str # where the key came from, for messages |
| 161 | fetched: bool = False # True: published by the server; False: set by the user |
| 162 | |
| 163 | |
| 164 | _configured_server_keys = {} # type: Dict[str, SelfManagedServerKey] |