federation-api: Use ServerKeys for verify_keys, old_verify_keys

This commit is contained in:
Jonas Platte 2020-09-13 17:12:48 +02:00
parent 26ae56d168
commit 481ca6b415
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -52,9 +52,9 @@ pub struct ServerKey {
/// DNS name of the homeserver.
pub server_name: ServerNameBox,
/// Public keys of the homeserver for verifying digital signatures.
pub verify_keys: BTreeMap<String, VerifyKey>,
pub verify_keys: BTreeMap<ServerKeyId, VerifyKey>,
/// Public keys that the homeserver used to use and when it stopped using them.
pub old_verify_keys: BTreeMap<String, OldVerifyKey>,
pub old_verify_keys: BTreeMap<ServerKeyId, OldVerifyKey>,
/// Digital signatures of this object signed using the verify_keys. Map of
/// server name to keys by key ID
pub signatures: BTreeMap<ServerNameBox, BTreeMap<ServerKeyId, String>>,