federation-api: Use ServerKeys for verify_keys, old_verify_keys
This commit is contained in:
parent
26ae56d168
commit
481ca6b415
@ -52,9 +52,9 @@ pub struct ServerKey {
|
|||||||
/// DNS name of the homeserver.
|
/// DNS name of the homeserver.
|
||||||
pub server_name: ServerNameBox,
|
pub server_name: ServerNameBox,
|
||||||
/// Public keys of the homeserver for verifying digital signatures.
|
/// 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.
|
/// 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
|
/// Digital signatures of this object signed using the verify_keys. Map of
|
||||||
/// server name to keys by key ID
|
/// server name to keys by key ID
|
||||||
pub signatures: BTreeMap<ServerNameBox, BTreeMap<ServerKeyId, String>>,
|
pub signatures: BTreeMap<ServerNameBox, BTreeMap<ServerKeyId, String>>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user